You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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 of the server or agent where the expression is evaluated.

NameDescriptionParametersReturn TypeUsage Examples
Day

string array

DayOfWeek




DaysAgo




FormatFormats 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










  • No labels