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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counting days between 2 dates

Status
Not open for further replies.

paulminne

Programmer
Nov 27, 2002
80
AU
Hi,

I was just wondering if there is a way to count the number of days in between 2 dates in the 'medium date' format? If so, where/how might I begin to code this?

Regards,

- Paul
 
Paul, Date/Time values are stored as Integers and decimals no matter what the format you choose so you should be able to use the DateDiff() function.
DateDiff("d",FirstDate, SecondDate)

That's all it should take.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top