Adding the Realtime Date to Your ASP Site
Written by Pierce Lynch published 8th Mar 2006 | Comment on this article
A small simple line of code in ASP to add the real date to your site, give it that professional look!
If you wish to have the date on your site, and have not got the time to write all those complicated ASP, VB or PHP statements - then give this a try! Its a simple yet effective line of code to give you site a little professional touch where you want it.
To use this line write your normal HTML tages such as &
tages as normal and then just insert this line of code inbetween these tags:
<% Response.Write FormatDateTime(date, 1) %>
So, the finshed line should look something like this:
<font size="2" color=BLACK><b><% Response.Write FormatDateTime(date, 1) %></b></font>
Its that easy - give it a try! Just remember, for this to work - you need to save the page with the .asp file extension to make the ASP code work. If you leave it as .HTM or .HTML it will not work.