Hello,
i'm using a form with 2 dates in the format mm/dd/yyyy in it. I wanna
calculate the days between the two dates.
I tried it like this:
<script language="JavaS cript">
var date1 = new date("10/22/2003");
var date2 = new date("10/25/2003");
var diff = date2.gettime() - date1.gettime() ;
</script>
only it seems that the date format like this won't work is there anything i
can do to convert the format or convience it to use the date like that?
Thanks for the help
chris
i'm using a form with 2 dates in the format mm/dd/yyyy in it. I wanna
calculate the days between the two dates.
I tried it like this:
<script language="JavaS cript">
var date1 = new date("10/22/2003");
var date2 = new date("10/25/2003");
var diff = date2.gettime() - date1.gettime() ;
</script>
only it seems that the date format like this won't work is there anything i
can do to convert the format or convience it to use the date like that?
Thanks for the help
chris
Comment