Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>
- Time
- </title>
- </head>
- <body>
- <p><script type="text/javascript">
- var mmToMonth = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
- function showLocalDate(timestamp)
- {
- var dt = new Date(timestamp * 1000);
- var mm = mmToMonth[dt.getMonth()];
- return dt.getDate() "-" mm "-" dt.getFullYear() " " dt.getHours() ":" dt.getMinutes();
- }
- document.write(showLocalDate(1275773244));
- </script>
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement