How to convert "dd/mm/yyyy" to ISO string in JavaScript – Jquery
How can I convert this date: 29/12/2022 where: 29 is day, 12 is month, 2022 is year, to ISO string. I tried this: var dateStr = "29/12/2022"; var parts = dateStr.split("/") var myDate = new Date(parseInt(parts[2]), parseInt(parts[1]) - 1, parseInt(parts[0]));…