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

Free Components

HTML Reference
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 Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"f u cn rd ths, u cn gt a gd jb n cmptr prgmmng." - Anon

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.