Library: date.js
Overview
No overview provided.
Constructors
Functions
Parse a string and convert it to a Date object.
If no format is passed, try a list of common formats.
If string cannot be parsed, return null.
Avoids regular expressions to be more portable.
parameters
| val | ||
| format |
Objects
Copyright (c)2005-2007 Matt Kruse (javascripttoolbox.com)
Dual licensed under the MIT and GPL licenses.
This basically means you can use this code however you want for
free, but don't claim to have written it yourself!
Donations always accepted: http://www.JavascriptToolbox.com/donate/
Please do not link to the .js files on javascripttoolbox.com from
your site. Copy the files locally to your server instead.
Modified by Mason Tang, SIMILE Project, 2007
- Changed behavior of format and parse for AM/PM, behavior of 'a' is now
bound to 'A', while 'a' will print a lowercase 'am/pm'.