Source code

CERNY.js.Date

Some useful methods for the Date prototype providing date formatting and parsing.

Uses

None

Used by

Functions

format

Format this date according to format.

format : the format in which to format this date
return : a string containing the date formatted in format
parse

Parse a date out of a dateStr based on the the formats provided. If there there is more than one matches the first format is applied to parse the dateStr.

dateStr : the dateStr to parse
formats : a DateFormat or an array of DateFormats
return : if the dateStr can be parsed, a date is returned otherwise null is returned

History

2006-07-02 : Created.

API Documentation for version

1.0

Scripts

1.0

Functions

Functions

format parse

Support

If you have any question or suggestions regarding Cerny.js, do not hesitate to contact me. Your input is always welcome.