101
rated 0 times
[
106]
[
5]
/ answers: 1 / hits: 42641
/ 12 Years ago, thu, april 19, 2012, 12:00:00
I want to get reaming days to go particular date so i am trying to detection of particular date with today date. but this not working here is my code If the date is next month 27 how can i get remaining days to go
var date2=new Date();
var date1=27/5/2012;
var diff = date1.getDate()-date2.getDate();
var date_reaming = diff.getDate();
document.write(date_reaming + 'days to go');
More From » javascript