I defined two variables
var startdate = new Date();
var enddate = new Date();
I get dateassigned to the startdate from a function. I then assign the start date value
to the enddate variable and I'm doing some for loop logic where I compare the dates and
in that process I want to see the date difference between startdate and enddate. I get
diff as NAN when I substrace like var diff = startdate - datediff.
When I put alert on startdate it comes as: 2010-06-28 00:00:00.
I'M not sure what could be wrong.