I want to get the difference of of these dates. e.g
var current_date = new Date();
var date_from_database = "2013/06/10 15:00:00";
var difference = data_from_datebase - current_date;
// so the result should be: 7
I want to get how many days left buy subtracting the current day on specific day like the example above. How can I do this on javascript?
Thanks in advance!