How to Insert the Date and Time in a Website
Open one of your Web pages using Notepad, an HTML editor or any application that produces plain text. To assure that you retain a copy of your unedited site code, duplicate the file before you edit it.
Add the following code after the first "" tag in your HTML:
Save the document and open it in your browser. The date and time appear in the location in which you placed the "div" tag. Reload the page to see the values change.
Tips & Warnings
- The separator variable can contain any character you select. This example uses a dash.