Library: date.js
Overview
No overview provided.
Constructors
Functions
Date.parseString(val, format)
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
Date.$VERSION
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'.
Number getWeekOfYear
Get the number of the week of the year.
var dtm = new Date("01/12/2008");
dtm.getWeekOfYear();
Generated by JsDoc Toolkit on Mon, 20 Aug 2007 18:41:57 GMT