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)