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


DATETIME function [Date and time]

Converts an expression into a timestamp.

DATETIME( expression )
  • expression   The expression to be converted. It is generally a string.


Attempts to convert numerical values return an error.

Standards and compatibility
  • SQL/2003   Vendor extension.


The following statement returns a timestamp with value 1998-09-09 12:12:12.000.

SELECT DATETIME( '1998-09-09 12:12:12.000' );