0

I'm trying to parse new Date("2021/09/21 18:59:00.000000") but getting invalid Date The problem occurred in safari and working fine in chrome. Any Solution?

Álvaro González
  • 135,557
  • 38
  • 250
  • 339
MhkAsif
  • 489
  • 3
  • 18

1 Answers1

-4

Just use:

new Date("2021/09/21 18:59:00")

and then add milliseconds.

camille
  • 15,634
  • 17
  • 33
  • 53
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 16 '22 at 10:44
  • 1
    You don't need to ask people to vote for your answer, and you definitely don't need to take up space in the answer for it – camille Jan 16 '22 at 23:11