You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

parse_date()

Usage

parse_date(string, pattern)

Description

Parses the given string according to the given pattern. This method is the inverse of date_format(). See date_format() for a description of the possible patterns.

Example

${parse_date('2015-12-12', 'yyyy-MM-dd')}

results in

2015-12-12T00:00:00+0100

Search results for "parse_date()"

parse_date()

Parses the given string according to the given pattern and returns a date object. This method is the inverse of date_format().

parse_date(string, pattern)