Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function timeStamp() {
- // Create a date object with the current time
- var now = new Date();
- // Create an array with the current month, and day
- var date = [ now.getMonth() + 1, now.getDate(), now.getFullYear() ];
- // Return the formatted string
- return date.join("/") + suffix;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement