Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- update = new Date(document.lastModified);
- theMonth = update.getMonth()+1;
- theDate = update.getDate();
- theYear = update.getFullYear();
- if (update.getHours === 23) {
- theHour = 0;
- } else {
- theHour = update.getHours()+1 ;
- }
- theMinutes = update.getMinutes();
- theSec = update.getSeconds();
- document.writeln(theMonth + "/" + theDate + "/" + theYear + " " + theHour + ":" + theMinutes + ":" + theSec);
Advertisement
Add Comment
Please, Sign In to add comment