Question: how to convert string date to yyyy mm dd 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.