Eshwar Reddy
Kilo Sage

Hi @Jose MMR 
Use below script 

var userInputDate = "01/10/2024"
var formattedDate = userInputDate.split("/").reverse().join("-") + " 00:00:00";
var a = new GlideDateTime();
a.setDisplayValue(formattedDate, "yyyy-MM-dd HH:mm:ss");

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

 

Thanks 
Eshwar