'Converting date to UTC timestamp
I have the following date 2022-02-24T17:30:00.0000000 in UTC. I'm not sure what format it is in, but I need to convert it into a utc timestamp. How can I do that? I tried using
var parseISO = require('date-fns/parseISO');
parseISO("2022-02-24T17:30:00.0000000").getTime()
but that's not giving me the right timestamp.
Can someone please help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
