Anti-Rich
Well-known member
i am currently working on a form that handles my company's timesheets, which work in 24 hour time.
the following code would return the wrong values,
[/SIZE]
if i had somethink like 1500/100 - 1100/100, it would return 4, which is correct. however, if i did 1115/100 - 1100/100 it would return 0.15, now i realise that this represents a quarter of an hour, so how would i make it detect something like this and change the decimal on the end from 0.15 to 0.25 (and also 0.45 to 0.75).
if there are some 24hr time functions in vb.net could someone please tell me about them, as this would make life alot easier!
cheers all
regards
adam
the following code would return the wrong values,
VB.NET:
[SIZE=2]TotalNormalHours = (([/SIZE][SIZE=2][COLOR=#0000ff]CDbl[/COLOR][/SIZE][SIZE=2](txtTimeOut.Text) / 100) - ([/SIZE][SIZE=2][COLOR=#0000ff]CDbl[/COLOR][/SIZE][SIZE=2](txtTimeIn.Text) / 100))[/SIZE]
[SIZE=2]
if i had somethink like 1500/100 - 1100/100, it would return 4, which is correct. however, if i did 1115/100 - 1100/100 it would return 0.15, now i realise that this represents a quarter of an hour, so how would i make it detect something like this and change the decimal on the end from 0.15 to 0.25 (and also 0.45 to 0.75).
if there are some 24hr time functions in vb.net could someone please tell me about them, as this would make life alot easier!
cheers all
regards
adam