ParseDateTime

Parses a datetime string or object

Method Signature

ParseDateTime(date=[any], format=[string], timezone=[string], locale=[string])

Arguments

Argument
Type
Required
Description
Default

date

any

true

the date, datetime string or an object

format

string

false

the format mask to use in parsing

timezone

string

false

the timezone to apply to the parsed datetime

locale

string

false

optional ISO locale string ( e.g. en-US, en_US, es-SA, es_ES, ru-RU, etc ) used to parse localized formats

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC