4D v16.3

Date Operators

Home

 
4D v16.3
Date Operators

Date Operators  


 

 

An expression that uses a date operator returns a date or a number, depending on the operation. All date operations will result in an accurate date, taking into account the change between years and leap years. The following table shows the date operators:

OperationSyntaxReturnsExpressionValue
Date differenceDate – DateNumber!1997-01-20! - !1997-01-01!19
Day additionDate + NumberDate!1997-01-20! + 9!1997-01-29!
Day subtractionDate – NumberDate!1997-01-20! - 9!1997-01-11!



See also 

Bitwise Operators
Comparison Operators
Logical Operators
Numeric Operators
Operators
Picture Operators
String Operators
Time Operators

 
PROPERTIES 

Product: 4D
Theme: Operators

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)