invalid date when trying to change the date format
I have a date value and want to format it. This is the value: Thu Jul 07 2022 01:03:18 GMT+0200 (Mitteleuropäische Sommerzeit) I want to make this format: console.log(new Date(‘YYYY-MM-DD h:i:s’, dateVal)); but I get invalid date. How can I make it right ? >Solution : Though the Date object’s constructor accepts a handful of… Read More invalid date when trying to change the date format