Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
const date = new Date(); const ISOwithoutMs = date.toISOString().split('.')[0] + 'Z'; console.log(ISOwithoutMs); /* run: "2022-04-03T15:13:19Z" */
const ISOdate = '2022-03-02T18:16:26.135Z'; const ISOdateWithoutMs = ISOdate.split('.')[0] + 'Z'; console.log(ISOdateWithoutMs); /* run: "2022-03-02T18:16:26Z" */