Hi group,
I have two fields that hold Time data. There are corrosponding date fields also. I was going to use a time stamp like Now() but the users said they need to be able to input the time since the ticket might not get opened immediately.
txtDateIssueIn and txtDateIssueClosed
txtTimeIssueIn and txtTimeIssueClosed
As long as the issue is closed same day, i can calculate the difference in time. However, if the problem goes on past midnight, WHOA!! ....
Example:
txtTimeIssueIn = 9:00 am
txtDateIssueIn = 5/16/2003
txtTimeIssueClosed = 10:30 am
txtDateIssuedClosed = 5/16/2003
Difference: 1.5 hours
but... what if txtDateIssuedClosed is 5/17/2003. that is where my problem comes in. DateDiff doesnt seem to handle next day calculations or maybe.... could it be.... i dont handle time well....hmmm...
Can anyone point me in the direction of calculating the difference in time and take midnight into consideration?
TIA
Have A Great Day!!!,![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Senior Test Lead
I have two fields that hold Time data. There are corrosponding date fields also. I was going to use a time stamp like Now() but the users said they need to be able to input the time since the ticket might not get opened immediately.
txtDateIssueIn and txtDateIssueClosed
txtTimeIssueIn and txtTimeIssueClosed
As long as the issue is closed same day, i can calculate the difference in time. However, if the problem goes on past midnight, WHOA!! ....
Example:
txtTimeIssueIn = 9:00 am
txtDateIssueIn = 5/16/2003
txtTimeIssueClosed = 10:30 am
txtDateIssuedClosed = 5/16/2003
Difference: 1.5 hours
but... what if txtDateIssuedClosed is 5/17/2003. that is where my problem comes in. DateDiff doesnt seem to handle next day calculations or maybe.... could it be.... i dont handle time well....hmmm...
Can anyone point me in the direction of calculating the difference in time and take midnight into consideration?
TIA
Have A Great Day!!!,
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Senior Test Lead