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