Date
Result = Date ( [ Expression ] )
Return the date part of a date & time expression. If the expression is omitted, then the today date is returned.
The current localization is used, i.e. the date part in the current timezone is returned.
Example
Print Now; " -> "; Date(Now)
05/16/2002 15:10:59 -> 05/16/2002
Date (2)
Date = Date ( Year , Month , Day [ , Hours , Minutes , Seconds ] )
Make a local date from its components.
The date components are in local time. For example, if you call this function on a French localization, the internal UTC time will be one or two hours sooner.
Examples
Print Date(1972, 9, 6, 1, 5, 17)
Print Date(1972, 9, 6, 1, 5, 17)
Print CFloat(Date(1972, 9, 6, 1, 5, 17))
06.09.1972 01:05:17
2473671,04533565
See also