Every PC that I have ever used will already tell me the date and time.
If you must do it then you will need to write a little javascript to format and display the current date. That will work by reading the date and time on the visitor's PC so if they have it set incorrectly then it will display incorrectly.