parseDate (Date value from text)

Prev Next

This function can be used to create a date value from a text.

Tooltip

Syntax: $parseDate(dateString[,format[,timeZone]])

Parameter

Description

dateString

The date to be parsed as text.

format

The format to be used for parsing. If not specified, then the format from localization is used.

timeZone

The time zone of the parsed date. If not specified, then the timezone of the user is used.

Returns the parsed date or NULL.

Example: $parseDate(2020-04-01,yyyy-MM-dd) – returns 01.04.2020 as a date with time.

Syntax

$parseDate(dateString[,format[,timeZone]])

Parameter

Name

Description

dateString

The date to be parsed as text.

format

The format to be used for parsing. If not specified, then the format from the language administration is used.

timeZone

The time zone of the parsed date. If not specified, then the timezone of the user is used.

Return value

The parsed date or NULL.

Example

Syntax

Result

$parseDate(2020-04-01,yyyy-MM-dd)

Date: 01.04.2020