Automatically display the date the file was last modified.
The Date() function is used to get the current date and store it in a variable called date.
Code:
The format of the date is browser depend. To have the date appear the same for all browsers that support javascript use the code below.