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

 

 

 

 

 

 

 

 

 

 

 

 

DateDiff

The DateDiff function will calculate the number of units of time difference between the two date parameters. This means you can measure the difference in time however you like. Hours, Minutes, Seconds.. etc.

    dDate
    dDate = DateAdd("d", 1, Now())
    Response.Write "Hours Difference = " & DateDiff("h", dDate, Now())


Unit Meaning
d Day
m Month
yyyy Year
q Quarter
w Weekday
ww Week of Year
h Hour
n Minute
s Second


Orvado Technologies

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

Contact Us | Contribute | About | Site Map



"The man who has no imagination has no wings." - Muhammad Ali

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