The datetime object represents a combined date and time value and includes properties, and functions to extract numbers, convert between local and UTC, and convert to a string representation. Note that the local date and time value and formatting output is based on the timezone and regional settings of the server or agent where the expression is evaluated.
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Day | string array | ||||
DayOfWeek | |||||
DaysAgo | |||||
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") | |
Hour | |||||
HoursAgo | |||||
Local | |||||
Millisecond | |||||
Minute | |||||
MinutesAgo | |||||
Month | |||||
Second | |||||
SecondsAgo | |||||
ToLongDateString | |||||
ToLongTimeString | |||||
ToShortDateString | |||||
ToShortTimeString | |||||
UTC | |||||
Year | |||||