1/* Here you are assigning an instance of momentjs to CurrentDate: */
2var CurrentDate = moment();
3
4/* Here just a string, the result from default formatting
5of a momentjs instance: */
6var CurrentDate = moment().format();
7
8/* And here the number of seconds since january of... well, unix timestamp: */
9var CurrentDate = moment().unix();
10
11/* And here another string as ISO 8601
12(What's the difference between ISO 8601 and RFC 3339 Date Formats?): */
13var CurrentDate = moment().toISOString();
14
15/* And this can be done too: */
16var a = moment();
17var b = moment(a.toISOString());
18
19console.log(a.isSame(b)); // true
20