<html> <head> <script type = "text/javascript"> function difference() { } </script> </head> <body> From input type = "text" size = "10" maxlength = "5" id = "startTime"><br> To<input type = "text" size = "10" maxlength = "5" id = "endTime"><br><br><br> <input type = "button" value= "Get Time Difference" önclick = "difference()"><br><br> <tr> <td align="left">Calculated Time Difference <input type="text" id="diff" readonly size="10"> </td> </tr> </body> </html>
var a = new Date(2009, 2, 31, 0, 0, 0, 0); var b = new Date(2009, 2, 1, 0, 0, 0, 0); alert((b.getTime() - a.getTime()) / (1000*60*60*24));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)