parse date object javascript code example Example: date.parse string to javascript var d = Date.parse("March 21, 2012");