This is a javascript to display the current date and/or time. You can choose from the four different javascript functions to change the date/time display format.

displayDate1:

displayDate2:

displayDateTime:

displayTime: