Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get date without time

function WithoutTime(dateTime) {
    var date = new Date(dateTime.getTime());
    date.setHours(0, 0, 0, 0);
    return date;
}
 
PREVIOUS NEXT
Tagged: #javascript #date #time
ADD COMMENT
Topic
Name
3+8 =