No worries new Date(undefined) always throws 'Invalid Date' in the console and new Date(null) returns the starting point.
Thanks for the neat snippet though.
Could you also explain why we subtract 621672192e5 ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
No worries
new Date(undefined)
always throws 'Invalid Date' in the console andnew Date(null)
returns the starting point.Thanks for the neat snippet though.
Could you also explain why we subtract
621672192e5
?