Can I convert “dd/MM/yyyy hh:mm tt” to “yyyy-mm-ddThh:mm” in Javascript?
I have date in "dd/MM/yyyy hh:mm tt" format eg. (25/05/2023 2:30 PM). And I want to convert it into "yyyy-mm-ddThh:mm" this format eg. (2023-05-25T14:30) by using Javascript. I tried like this: console.log(new Date("25/05/2023 2:30 PM")); But It's showing as "Invalid…