Does anyone know what code to insert in a website to display the current date? I’m looking for the date the page is accessed, not the date the page is written. In other words, if someone accesses the page 3 years from today, I want it to say “December 7, 2007”
I’m looking for either HTML or javascript code.
Thanks.
An example using Javascript: The Code Project. You might want to use getFullYear() instead of getYear().