Programming Reference:Functions:CCParseDate

From CodeCharge Studio Community Wiki

Jump to: navigation, search

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

Location
Common

Syntax

CCParseDate(ParsingDate,FormatMask)

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


Example

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