>Hello Al.
>I was testing the code that you gived me, but it return me a invalid result.
>I use this:
>
class=code
>ltDateTime1 = {^2001-06-22 09:00:00}
>ltDateTime2 = {^2001-06-23 15:00:00}
>lnTimeDifferenceInSeconds = ((ltDateTime2 - ltDateTime1)/3600)
>
>The result that it return me is: 30.0000
>The result of this must to be: 6
>What do you think is happening.?
You have two different days. Change the 22 to 23 in the first date and it will return 6!