Date Object is giving me some strange results

Date Object is giving me some strange results
0.0 0

#1

I am trying to simply log a new date as such:

console.log(new Date());

However instead of getting a result like:

Mon Jun 25 2018 19:18:30 GMT-0700 (Pacific Daylight Time)

I am getting this:

2018-06-26T02:23:04.896Z

Any reason why? Thanks for the help.


#2

Do not add new in front of Date(). Adding new in front creates a Date object and the console.log attempts to print it.