Date()

Syntax

Date = Date([Year, Month, Day, Hour, Minute, Second])
Description
Returns the date value expressing the given parameters, or the current system date if no parameters are specified.

Parameters

Year, Month, Day, Hour, Minute, Second (optional) The components of the date to return. If these parameters are not specified, then the current system date and time are used.

Return value

Returns the specified date value.

Example

  Debug Date() / (3600*24*365)  ; will print the number of years since 01/01/1970 and now
  Debug Date(1999, 12, 31, 23, 59, 59)  ; will print '946684799' (number of seconds between 01/01/1970 0:00:00 and 12/31/1999 23:59:59)

See Also

FormatDate(), Year(), Month(), Day(), Hour(), Minute(), Second()

Supported OS

All

<- AddDate() - Date Index - Day() ->