Thursday, 18 November 2010

JavaScript getTime() function

getTime() : Returns number of milliseconds since 1 January 1970

<script type="text/javascript">
alert((new Date()).getTime())
</script>

Click here for a full list of date and time functions.

No comments:

Post a Comment