Skip to content
Advertisement

How to format JavaScript date to mm/dd/yyyy?

Im getting the date like ‘Wed Nov 08 2017 00:00:00 GMT-0800 (Pacific Standard Time)’ and putting the value in an input.

Is there a way to parse the datetime into a date, add five days to it, and then format it like mm/dd/yyyy?

I made a https://jsfiddle.net/ax6qqw0t/

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement