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

SQL Anywhere 11.0.0 » UltraLite - Database Management and Reference » UltraLite SQL Reference » UltraLite SQL function reference » Alphabetical list of functions

 

DATE function [Date and time]

Converts the expression into a date, and removes any hours, minutes, or seconds.

For information about controlling the interpretation of date formats, see UltraLite date_order creation parameter.

Syntax
DATE( expression )
Parameters
  • expression   The value to be converted to date format, typically a string.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 1999-01-02 as a date.

SELECT DATE( '1999-01-02 21:20:53' );

The following statement returns the create dates of all the objects listed in the SYSOBJECT system view:

SELECT DATE( creation_time ) FROM SYSOBJECT;