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!

DateDiff Function for Time

Status
Not open for further replies.

Kindi

Programmer
Jan 31, 2001
54
0
0
GB
I have 2 text boxes, starttime and endtime, when the user enters in start and end times, another third box populates with the total time take between the start and end times, the control source of the total time is set to this:

=DateDiff("h",[startTime],[EndTime])

All of this works ok, but i want the time difference to be in minutes not hours.

How do i do this?

Thanks
 
Change "h" to "n".

Regards,

Dan

 
Kindi,

In thread702-334282 you asked how to get both hours and minutes. I posted the getelapsedtime function that should produce what you were wanting. Did that not work for you?
 
Hi gol4

Thanks yes it did work for me, just that by using the "h" i got difference in hours and i needed minutes.

Everything works as it should now.

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top