var myTime = new Date()var parseDate = Date.parse("Mon, 19 Nov 2001 17:41:46 –0400")
Note:In this example, the date is set by entering a string. The –0400 part of the string refers to the timezone.
see also:setTime, toGMTString