Create a date
Date object for the date: Feb 20, 2012, 3:12am. The time zone is local.
Show it using
new Date constructor uses the local time zone. So the only important thing to remember is that months start from zero.
So February has number 1.
Here’s an example with numbers as date components:
We could also create a date from a string, like this: