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:332862
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to