Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

Now

The Now function returns the current date and time according to the local computer settings. When writing ASP, this time is taken from the machine that the script is running on which is usually the web server serving the page.

Unlike the Date function which returns the current date, the Now function returns and date and time as a single variable. You can format this date using the FormatDateTime function or you can extract portions of the date using the DatePart function.

As a shortcut for the DatePart function, ASP also provides the handy functions: Year, Month, Day, Hour, Minute and Seconds.

Response.Write "Today's date and time: " & FormatDateTime(Now(), vbLongDate)

Orvado, San Diego Web Design

ASP Nuke CMS
Free Open Source
Content Manager
GoSwap Auctions
Buy, Sell
No Fees!

Contact Us | Contribute | About | Site Map



"In war there is no substitute for victory." - Douglas MacArthur

©2012 San Diego Web Design - Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.