A
Andy
Hi,
I have a field which displays total hours and minutes as
a text string (for other calculation reasons) e.g 37:20.
What I am trying to achieve, is convert the string into
total minutes. BUT it needs to be able to cope with
negative times. I currently have some code that converts
this and works fine until it tries to convert -37:20.
I also have some code for dealing with negative minutes
when converting back into the text string e.g -260 back
into "-04:20" but cannot get it to work the other way
round.
Any help would be greatly appreciated.
TIA
Andy
I have a field which displays total hours and minutes as
a text string (for other calculation reasons) e.g 37:20.
What I am trying to achieve, is convert the string into
total minutes. BUT it needs to be able to cope with
negative times. I currently have some code that converts
this and works fine until it tries to convert -37:20.
I also have some code for dealing with negative minutes
when converting back into the text string e.g -260 back
into "-04:20" but cannot get it to work the other way
round.
Any help would be greatly appreciated.
TIA
Andy