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
2007-01-06
:
Added interception.
2006-07-02
:
Created.

