Contact: aviboots(AT)netvision.net.il
40,759 questions
53,133 answers
573 users
const date = new Date(); const ISOwithoutMs = date.toISOString().split('.')[0] + 'Z'; console.log(ISOwithoutMs); /* run: "2022-04-03T15:18:44Z" */
const ISOdate = '2022-01-24T12:14:30.135Z'; const ISOdateWithoutMs = ISOdate.split('.')[0] + 'Z'; console.log(ISOdateWithoutMs); /* run: 2022-01-24T12:14:30Z */