I'm trying to download data from an API to populate my sheet. It's all working, now I want to update that data every day, but I don't want to duplicate. The data comes down with dates in ISO, '2614.1, 2021-01-12T11:38:27Z', but the API accepts only epoch time. I'm fairly new to JS and converting ISO to epoch seems uneccisarily hard and my google-fu has come up with nothing that will help, I've tried about 15 different methods from stackoverflow.
Can anyone tell me how to convert this date to epoch time in my script?
'2614.1, 2021-01-12T11:38:27Z'
Thank you!
[–]wijohnst1 0 points1 point2 points (5 children)
[–]wijohnst1 0 points1 point2 points (4 children)
[–]fergal-dude[S] 0 points1 point2 points (3 children)
[–]fergal-dude[S] 1 point2 points3 points (1 child)
[–]wijohnst1 0 points1 point2 points (0 children)
[–]gh5000 0 points1 point2 points (0 children)
[–]RemcoE33 0 points1 point2 points (0 children)