CodeCharge Studio

CCParseDate Function (PHP)

Description

Parses the specified date string into an array according to the specified date format.

Syntax

CCParseDate(ParsingDate,FormatMask)

Example

CCParseDate("2002 May 1",array("yyyy"," ","mmm"," ","d")) -> 2002-05-01

Return value

Date

Parameters

Name Type Description Required
ParsingDate String The date which will be parsed. Yes
FormatMask Array of strings (see CCFormatDate for available patterns) The format mask to parse the date with. No
Return Value Date The returned date. No

See also

CCFormatDate function


On-line, printable versions and updates