Javascript Date Objects

You can put the date/time into the documant in its basic form, ad it looks like this:

It is now

 

But there are various "methods" that can be used with JavaScripts "date objects" that can change the formatting.
The next script uses the toDateString() method to convert just the date part of the date object:

The date is

 

For a different format, the next script uses the toLocaleDateString() method to convert just the date part of the date object using locale conventions:

The date is

 

The next script uses the toLocaleTimeString() to convert just the time part of the date object using locale conventions:

The time is