var newTime = new Date()
newTime.setTime(Date.parse("Aug 1, 2001"))
Note: In this example, the Date.parse function converts a string into milliseconds, which the setTime function then uses to set the time for the Date object newTime. The Date object newTime is now set to Aug 1 2001. see also: Date.parse