Question: how to convert date object to dd mm yyyy format in javascript?
Answer: The simplest way to convert your date to the yyyy-mm-dd format, is to do this: var date = new Date("Sun May 11,2014"); var dateString = new Date(date. getTime() - (date. getTimezoneOffset() * 60000 )) .