SearchSearch   MemberlistMembers   RegisterRegister   ProfileProfile   Log inLog in 

Adding the Realtime Date to Your ASP Site

 
Post new topic   Reply to topic    Open Hosting Internet Solutions Forum Index -> Articles and Tutorials -> Server Side Web Development
View previous topic :: View next topic  
Author Message
Pierce.Lynch
Sleep Typist


Joined: 30 Sep 2003
Posts: 1002
Location: Peterborough, UK

PostPosted: Wed Mar 08, 2006 3:38 pm    Post subject: Adding the Realtime Date to Your ASP Site Reply with quote

Adding the Realtime Date to Your ASP Site

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:
Code:
<% Response.Write FormatDateTime(date, 1) %>


So, the finshed line should look something like this:
Code:
<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.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Open Hosting Internet Solutions Forum Index -> Articles and Tutorials -> Server Side Web Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group
FAQClick here for help using the phpBB forum