Click or drag to resize

Date Function

X#
Return the system date as a date value.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION Date() AS DATE
Request Example View Source

Return Value

Type: Date
Remarks
This function provides a means of initializing memory variables to the current date, comparing other date values to the current date, and performing date arithmetic relative to the current date. The display format for dates is controlled by SetDateFormat() and the SET DATE command.
The default format is mm/dd/yy.
Examples
These examples show Today() used in various ways:
X#
1? Today()                    // 09/09/98
2? Today() + 30                // 10/09/98
3? Today() - 30                // 08/10/98
4dDate := Today()
5? CMonth(dDate)            // September
See Also