JavaScript Новая дата ноль времени
var d = new Date();
d.setHours(0,0,0,0);
Ham-Solo
var d = new Date();
d.setHours(0,0,0,0);
var date = new Date();
dateWithoutTime(date);
function dateWithoutTime(date)
{
date.setHours(0,0,0,0)
return date;
}
Wed Feb 16 2022 00:00:00 GMT+0545 (Nepal Time)