Friday, August 16, 2013

JavaScript getTime method

<html>
<body>

<script type="text/javascript">
var d=new Date();
document.write(d.getTime() + " milliseconds since 1970/01/01");
</script>

</body>
</html>

Result

No comments: