$Sir_Date
<section begin="desc" />Get current datetime<section end="desc" />
Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Sir_Date function is to be entered.
This function accepts an optional datetime format string and an optional error control string, and returns the current date and time as a character string with the specified format.
Syntax
<section begin="syntax" /> %odate = $Sir_Date(fmt, errctl) <section end="syntax" />
where
fmt | optional datetime format string, defaults to 'YY-MM-DD'. Refer to for an explanation of valid datetime formats and valid datetime values. |
---|---|
errctl | optional error control string, refer to . |
%odate | set to contain the current date and time, in the format specified by fmt. |
For example, the following fragment prints a value such as
PRINT $Sir_Date('Wkday, DAY Month YYYY' WITH - ' "A"T HH:MI:SS AM')
- fmt is not a valid datetime format.