Advertisement
Guest User

Untitled

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