parseDate (Date value from text)

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

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