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