Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript beginning of today and yesterday

var start = new Date();
start.setHours(0, 0, 0, 0);
start = start.getTime();

var end = new Date();
end.setHours(0, 0, 0, 0);
end.setDate(end.getDate() + 1);
end = end.getTime();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #beginning #today #yesterday
ADD COMMENT
Topic
Name
8+6 =