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 (object)
:
the format in which to format this date
return (string)
:
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 (string)
:
the dateStr to parse
formats (object)
:
a DateFormat or an array of DateFormats
return (null,Date)
:
if the dateStr can be parsed, a date is returned otherwise null is returned
History
2007-03-15
:
Added signatures.
2007-01-06
:
Added interception.
2006-07-02
:
Created.

