Can't you just use seconds, since the difference is under a minute?

<cfoutput>
#DateDiff("s", "2010-04-08 19:34:47.0", "2010-04-08 19:35:35.0")#
</cfoutput>

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/


On 14 April 2010 00:08, Bradley Stone <[email protected]> wrote:

>
> Thanks guys. I think the problem is that that I was thinking that the
> function could function when the arguments are essentially the same day.
>  Here's what I did to solve the problem: when the function returns 0, do
> this:
>
> <cfoutput>
> <cfset holdTotalHours = ABS(DatePart("h", arguments.HighDate) -
> DatePart("h", arguments.LowDate))>
>
> <cfset holdTotalMinutes = ABS(DatePart("n", arguments.HighDate) -
> DatePart("n", arguments.LowDate))
>
> Results in (HH:MM) Format: #holdTotalHours#:#holdTotalMinutes#
> </cfoutput>
>
> Using DatePart here seems to work fine!
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332901
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to