Date to display in local syntax
now = new Date();
LocalTime = now.toLocaleString();
Before you can do anything which involves the current date/time, you have to set a variable equal to the current date. now = new Date() is command to get the current date and time from the user's computer, and assign it
to the variable, now in one long string.
Here are some other Date methods: