Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set time to zero in js date

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #time #js #date
ADD COMMENT
Topic
Name
5+3 =