Date Object in Javascript
· ☕ 2 min read
Let’s see a few points about when to use a date object, and why use this object vs. a date library?
The simplest and quickest way to get date in Javascript -
1 console.log(Date.now()); // 1549025852124 Date.now() does not create an object, and is really fast. But, it is also useless if you want to do anything with the date.