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