OpenLayers.Date

Contains implementations of Date.parse and date.toISOString that match the ECMAScript 5 specification for parsing RFC 3339 dates.  http://tools.ietf.org/html/rfc3339

Summary
OpenLayers.DateContains implementations of Date.parse and date.toISOString that match the ECMAScript 5 specification for parsing RFC 3339 dates.
Properties
dateRegExThe regex to be used for validating dates.
Functions
toISOStringGenerates a string representing a date.
parseGenerate a date object from a string.

Properties

dateRegEx

The regex to be used for validating dates.  You can provide your own regex for instance for adding support for years before BC.  Default value is: /^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:(?:T(\d{1,2}):(\d{2}):(\d{2}(?:\.\d+)?)(Z|(?:[+-]\d{1,2}(?::(\d{2}))?)))|Z)?$/

Functions

toISOString

Generates a string representing a date.  The format of the string follows the profile of ISO 8601 for date and time on the Internet

parse

parse: function(str)

Generate a date object from a string.  The format for the string follows the profile of ISO 8601 for date and time on the Internet Generated by Natural Docs

parse: function(str)
Generate a date object from a string.