Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function timeStamp() {
  2. // Create a date object with the current time
  3. var now = new Date();
  4.  
  5. // Create an array with the current month, and day
  6. var date = [ now.getMonth() + 1, now.getDate(), now.getFullYear() ];
  7.  
  8.  
  9. // Return the formatted string
  10. return date.join("/") + suffix;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement