>Sergey,
>
>Sorry to bug you again. But I can't understand something in your solution (and it works, of course):
>
>What is the purpose of the line
>
>tDt2 = tDt2 - Sec(tDt2)
>
>
>Why to subtract seconds() portion of the datatime from the datetime?
>
>And the same for tDt1
>
>What does it do?
>
>UPDATE: I got it. Never mind. I know, I should not be drinking Tequila this early in the day {g}
Yes, getting rid of seconds as you wanted in your original message but in different way. :)
--sb--