Date

Creates a date from a string based on the specified format

Date("18 Jan 2023",DateFormatTemplateOption.`dd*shortMonth*yyyy`) → 2023-01-18
Date("07 01 21",DateFormatTemplateOption.`MM*dd*yy`) → 2021-07-01

Inputs

Date(string, [format])

  • string - A string that contains a date in a special format

  • [format] - Format of the string, Supported Date and Time Parts, ex. DateFormatTemplateOption.MM*dd*yy