can someone explain me what is Javascript doing there?
Why I have to divide the ms through 1 to convert the date?
d1=new Date(board.resultsbox.value/1);
d2=new Date(board.resultsbox.value);
board.resultsbox1.value=d1; //Fri Nov 01 2013 00:30:00 GMT+0100 (CET)
board.resultsbox2.value=d2; //Invalid Date
Thanks and have a nice weekend.
<html>
<head>
<title>calculator based on javascript.</title>
</head>
<body>
<form name="board" id="board">
<input type="input" id="resultsbox" value="1383262200000">
<input type="input" id="resultsbox1">
<input type="input" id="resultsbox2">
</form>
<input type="button" onclick="
d1=new Date(board.resultsbox.value/1);
d2=new Date(board.resultsbox.value);
board.resultsbox1.value=d1;
board.resultsbox2.value=d2;" style="height: 80px;" value="=">
</body>
</html>