Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateDiff Using Now()

Status
Not open for further replies.

jeffshex

Technical User
Jun 30, 2005
208
US
I need to know how to make it so that the specified date is counted as 1 day already.
I have
Code:
=DateDiff("d",[appDate],Now())
For example, if my appDate is 2/28/06, the result I get is 13.

I need to find out how I can have it treat the appDate as 1 day so my result would of been 14.

Would it be easier to cheat and just put a + 1 on the end of that line? Not sure what the best approach would be, so any advice???

Thanks all!!!
 
In this instance cheating (+1) is encouraged. DateDiff returns the number of days elapsed since [appDate]. Obviously, on [appDate], no days have yet elapsed.
 
=Date()-[appDate]+1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top