How To Display The Time & Date Using ASP

 

The following script demonstrates how to display the time and date using ASP. The time is displayed using the server's local time.

 

 

Example

 

The Time is: 04:31:33.
Today's Date is: 09/09/2010.

 

Script Source

 

The Time is: <%response.write(time())%>.
<br>
Today's Date is: <%response.write(date())%>.

 

Please let me know if this script was helpful to you.

[rating]