I have a datetime in typescript as : "Sep 12, 2019 15:22:18 PM"
. How to convert this datetime to milliseconds using typescript / javascript ?
Asked
Active
Viewed 165 times
-1

Neeraj Nauni
- 3
- 1
- 5
-
1Possible duplicate of [Converting a string to a date in JavaScript](https://stackoverflow.com/questions/5619202/converting-a-string-to-a-date-in-javascript) – VLAZ Sep 12 '19 at 08:54
-
Also relevant: https://stackoverflow.com/questions/11893083/convert-normal-date-to-unix-timestamp – VLAZ Sep 12 '19 at 08:55