Onetastic Macro Documentation >
>
>
DateTime_FromString DateTime_FromString
Returns a date/time value by parsing a string representation of it.
Syntax
DateTime DateTime_FromString(String dateStr)
Parameters
- String dateStr
- String value to parse into a date/time object. It needs to be in the following format: YYYY-MM-DDTHH-MM-SS.000Z as specified at http://www.w3.org/TR/xmlschema-2/#dateTime.
Examples
$date = DateTime_FromString("2022-10-05T22:33:00.000Z")
|