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

SQL Anywhere 11.0.1 (Français) » UltraLite - Database Management and Reference » UltraLite SQL Reference » UltraLite SQL functions » SQL functions (A-D)


DATEADD function [Date and time]

Returns the date produced by adding multiple date parts to a date.

DATEADD( date-part, numeric-expression, date-expression )
date-part :
| quarter 
| month 
| week 
| day 
| dayofyear 
| hour 
| minute 
| second 
| millisecond
  • date-part   The date part to be added to the date. For more information about date parts, see Date parts.

  • numeric-expression   The number of date parts to be added to the date. The numeric-expression can be any numeric type, but the value is truncated to an integer.

  • date-expression   The date to be modified.



Standards and compatibility
  • SQL/2003   Vendor extension.


The following statement returns the value: 1995-11-02 00:00:00.000.

SELECT DATEADD( month, 102, '1987/05/02' );