I have this format of datetime currently stored in
what I want to do is convert it to
moment format. When i do this:
it gives me this:
Tue May 10 2022 13:00:00 GMT-0400 (Eastern Daylight Saving Time)
what I want to need to do is convert
2022-05-18T13:00:00.000Z to moment somehow. I tried:
but that doesn’t work either. is there a way to do this?
let whatever = moment(res.data[i].time) should instantiate the
moment object with the time string provided. You can then do whatever you need from there.