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');