I am trying to take some dates coming in as yyyy-mm-dd format and convert them into a Javascript date object. I am using new Date() to do so. It converts it "sucessfully" but 1 day behind the date inputted yyyy-mm-dd format. For example 2019-04-19 get returned as Thu Apr 18 2019 20:00:00 GMT-0400 (Eastern Daylight Time). Is there something i am missing here?

new Date('2019-04-19')

0 Answers