How to convert date into unix time?
If I have a date that looks like this?
Sun, Nov 14, 2021 04:52:00PM
How can I convert this into unix time?
I did new Date(‘Sun, Nov 14, 2021 04:52:00PM’)
and .getTime() to it however i get returned NaN?
Is there a way of doing this moment or js?
Source: JavaSript – Stack OverflowNovember 15, 2021