Returns a string representing a date expression in the specified format.
DATEFORMAT( datetime-expression, string-expression )
datetime-expression The datetime to be converted.
string-expression The format of the converted date.
For information about date format descriptions, see timestamp_format option [compatibility].
This function supports NCHAR inputs and/or outputs.
VARCHAR
Any allowable date format can be used for the string-expression.
SQL/2003 Vendor extension.
The following statement returns the value Jan 01, 1989.
SELECT DATEFORMAT( '1989-01-01', 'Mmm dd, yyyy' ); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |