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

Hours and Minutes from a DateTime field

Status
Not open for further replies.

StephenSB

Technical User
Nov 8, 2001
7
GB
Hi,

I am trying to get the Hours and minutes elapsed from two datetime fields (both in the format DD/MM/YYYY HH:MM:SS)They both have hours and minutes as well as the date. I have tried using the DateDiff formula but I could only get hours or minutes. Is there any way I can get both?
 
If you subtract one date from the other, and convert to total seconds, you can use formula #9 from faq149-243. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top