1

I'm trying to convert the current time to EST and display it in YYYY-MM-DDTHH:mm:ss.sssZ form. This is what I'm running but it's not giving the time in EST.

const now = new Date()
const currentTime = moment(now).tz('America/New_York').toISOString()

I'd prefer to this without moment, but an answer using moment would also be helpful.

Blue Moon
  • 79
  • 1
  • 9

0 Answers0