DateTime

Creates a datetime from string based on the specified format

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

Inputs

DateTime(string, [format])

Last updated