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



"I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image." - Stephen Hawking

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