Last updated 1 year ago
Creates a datetime from string based on the specified format
DateTime(string, [format])
string - A string that contains a date in a special format
string
[format] - Format of the string, , ex. DateTimeFormatTemplateOption.dd*shortMonth HH:mm
[format]
dd*shortMonth HH:mm
DateTime("2023-01-01 9:56:01", DateTimeFormatTemplateOption.`yyyy*MM*dd HH:mm:ss`) → 2023-01-01 09:56:01.000 DateTime("23 Jan 11:56", DateTimeFormatTemplateOption.`dd*shortMonth HH:mm`) → 0000-01-23 11:56:00.000