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

Convert date range to hours/minutes 1

Status
Not open for further replies.

dimsis

Programmer
Aug 6, 2000
76
0
0
GR
I need a function when you pass two dates (start and end date), it will return the hours and minutes passed in the hh:mm format.

TIA
 
Just subtract and use the Format function:

strDuration = Format(dtNewtime - dtOldTime,"hh:nn:ss")


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

For tsunami relief donations

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top