How to Add Date & Time to ASP pages

By webzarus

Rate: (3 Ratings)

many web sites want to display the visitors current date and time. JavaScript has been the answer for many designers, but more and more people are becoming security conscious with their browsers and turning off JavaScript.

Instructions

Difficulty: Easy

Things You’ll Need:

  • Web pages on a Windows Server running IIS (that support ASP)
  • Design software (note pad or similar text editor will work just fine )

Step1
Open web page you want to show date & time on.
Step2
Select the location you want to display the date & time
Step3
Type: <%=now()%> for date & time
Type: <%=date() %> for just the date to show.
Type: <%=time()%> for just the time to show.
Step4
Save file with the extension ".asp"
Step5
upload file to server.

Tips & Warnings

  • There are many extra functions and formatting options to show date and time in different formats.
  • This will show date & time on any page hosted on a windows web server configured to run ASP.
  • Will not run on unix/linux type servers unless running chilikat ASP ( most do not )

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article:  How to Add Date & Time to ASP pages

eHow Member: webzarus

webzarus

Authority Authority | 3795 Points

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.