Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var now = new Date();
- var then = (now.getMonth() + 1) + '/' + now.getDay() + '/' + now.getFullYear();
- then += ' ' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds();
- then += ' ' + now.getHours() >= 12 ? " PM" : " AM"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement