Skip to content
Advertisement

Convert PHP Doctrine date to JS [closed]

There is a webservice that provides me dates in JSON format like this:

startDate: {date: "2020-10-08 00:00:00.000000", timezone_type: 3, timezone: "Europe/Paris"}

Which would be the easiest way to convert that object into a JS Datetime?

Advertisement

Answer

Try using momentjs with moment-timezone

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