Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - Database Management and Reference » UltraLite SQL Function Reference » Alphabetical list of functions

DATEDIFF function [Date and time] Next Page

DATEFORMAT function [Date and time]

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 UltraLite date_format property.


Any allowable date format can be used for the string-expression.

Standards and compatibility

The following statement returns the value Jan 01, 1989.

SELECT DATEFORMAT( '1989-01-01', 'Mmm dd, yyyy' );