Following code toLocalString method converting to local date time but in server not able to convert
var utcdatetime=new Date(Date.UTC(fromYear, fromMonth – 1, fromDay)).toLocaleString();
output in server: Tuesday, December 12, 2021 7:00:00 PM
Out put in Local machine: 12/13/2021 4:00:00 PM.
Desired out is as as shown in the local server.