How to return the current timestamp with Moment.js?
Here you are assigning an instance of momentjs to CurrentDate: var CurrentDate = moment(); Here just a string, the result from default formatting of a momentjs instance: var CurrentDate = moment().format(); And here the number of seconds since january of… well, unix timestamp: var CurrentDate = moment().unix(); And here another string as ISO 8601 (What’s … Read more