4D v13.4

Date Operators

Home

 
4D v13.4
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!1/20/97! – !1/1/97!19
Day additionDate + NumberDate!1/20/97! + 9!1/29/97!
Day subtractionDate – NumberDate!1/20/97! – 9!1/11/97!

 
PROPERTIES 

Product: 4D
Theme: Operators

 
SEE ALSO 

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