Date and Time Functions
Function
|
Effect
|
Example
|
Current Date
|
Returns the computer system date.
|
15/8/1999
|
Day of
|
Returns the day number of a date (day-of-the-month).
|
Day of (Current Date) returns the number 15.
|
Month of
|
Returns the month number of a date (month-of-the-year).
|
Month of (Current Date) returns the number
8.
|
Year of
|
Returns the year number of a date.
|
Year of (Current Date) returns the number
1999.
|
Date
|
Converts a string into a date.
The Exclamation Point (!) is used within STATIC
to indicate a date in string format.
|
Date(!15/9/1999!) returns 15/9/1999 (Sept.
15, 1999).
|
Day Number
|
Returns the character that the ASCII code
represents.
|
Day Number (Current Date) returns 1 because
15/9/1999 is a Sunday.
|
Current Time
|
Returns the computer system time.
The Question mark (?) is used within STATIC
to indicate a time in string format.
|
?9:01:30?
|
Time string
|
The Time String function takes the time value
as expressed in seconds since midnight and returns the string in HH:MM:SS
format.
|
Time String(43200) returns 12:00:00.
|