Like Oracle Interbase/Firebird will automatically convert a string representation of a date/datetime to a date, however, you may CAST the string value to a date/date time explicitly by:
cast('2/1/2001' as date)
cast('01-FEB-2001' to date)
cast(NULL as date)
cast('TODAY' | 'YESTERDAY' | 'TOMMOROW' | 'NOW' as date)
you also may add the time component
cast('01-FEB-2001:23:59:59
"Time wait for no man, but has been known to wait for turtles"
Daniel P.
Main Topics
Browse All Topics





by: vowcaPosted on 2004-03-01 at 03:45:51ID: 10485399
What is this function supposed to do?
Do You think each of us has Oracle at home ? It is too expensive for that.
If as it is just type conversion, try
CAST (value AS TIMESTAMP) or CAST (value AS DATE) or CAST(value AS TIME) and same patter apply for any time.