SoFunction
Updated on 2025-02-28

Solution to IE browser does not support NEW DATE with parameters in javascript


function NewDate(str) {
str = ('-');
var date = new Date();
(str[0], str[1] - 1, str[2]);
(0, 0, 0, 0);
return date;
}