Description: This function returns the number of days since January 1, 1970 for a given date.
Returns: Numeric
Usage: Script or Steady State.
Format: DateNum(Day, Month, Year)
Parameters:
Day {
numeric } { required } { no default
}
Any numeric
expression giving the day of the month for the date.
Month { numeric } { required } { no
default }
Any numeric
expression giving the month number for the date. January is month 1.
Year { numeric } { required } { no
default }
Any numeric
expression giving the year of the date. The full four-digit date must be
used.
Comments: This function performs the inverse function to the Day, Month, and Year functions. No checks are done to verify that the parameters are in a valid range.
Example:
numDays = DateNum(16, 08, 1997);
NumDays is set to 8394, which is the number of days between 1 January 1970 and 16 August 1997.
See Also: