You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin Kernel Version 17.5.0: root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64:
new Date():
// Correct
> new Date('2018-02-01')
2018-02-01T00:00:00.000Z
// Incorrect
> new Date('2018-2-1')
2018-01-31T23:00:00.000Z
// Consistent with first example
> new Date('2018-12-12')
2018-12-12T00:00:00.000Z