Re: Calculations on Date Time Field

Has anyone ever converted a date time field into seconds (a numerical) field performed calculations on this field, and then converted the field back into a date and time field?

I’m trying to calculate the Mean and Median Date and Time of a set of date and times per day. For example:

01/26/2009 12:01 PM
01/26/2009 05:15 PM
01/26/2009 07:18 PM

Thanks in advance for any assistance!


mpac60 (BOB member since 2009-10-19)

Welcome to B:bob:B!

Convert dates to numbers of seconds from a midnight, then do the calculation and convert the result back to a date.

You can use for instance the formula from this post to do the final conversion of seconds into a hh:mm:ss format:


Marek Chladny :slovakia: (BOB member since 2003-11-27)