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

Subtracting minutes from a Time?

Status
Not open for further replies.

CTOROCK

Programmer
May 14, 2002
289
US
I have a Time value of 8:30 pm, and I want it to represent 8 hours and 30 minutes instead of 8:30 pm. I then want to subtract 50 minutes from that. How would I do this since the 50 minutes is a Single.
can I DtTime - TimeValue(SngTime) sngtime being the #
How can I subtract only a couple of minutes from a time?
"The greatest risk, is not taking one."
 
Couldn't you convert the 8 hours to minutes then add the other 30 minutes to this total then subtract the minutes you want removed? You might also check DateDiff in help.

cainebean
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top