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

DateDiff 2

Status
Not open for further replies.

dbero

Technical User
Joined
Mar 31, 2005
Messages
109
Location
US
Is it possible to calculate the hours difference
between two General Dates such as 6/15/2006 1:59:04 PM?

Thank you
 
debug.print datediff("h",date1, date2)

TMTOWDI - it's not just for Perl any more
 
Something like this ?
HoursElapsed = DateDiff("h", StartDate, EndDate)

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