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

TIME DIFFERENCE

Status
Not open for further replies.

woolade

Technical User
Nov 8, 2001
51
AU
Is there a formula to use that allows you to calculate the difference in minutes between the time in a Date Time field and midnight of that same date?

Thanks

woolade
 
Try:

datediff("n", cdatetime(year({table.datefield}),month({table.datefield}),day({table.datefield}),0,0,0),{table.datefield})

Note that midnight of the same day is 12:00AM, which means that it's earlier.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top