Discussions
How to convert Time budget field to decimal
i'm trying to use a Job's "Initial Time Budget" field (estimatedtime) for a pricing calculation in a formula field, but i'm stuck on how to convert it to a decimal amount
the budget hours display as "86:00" but appear to be stored as a complete date+time (currently with date 1 Jun 07). If i use TO_CHAR({estimatedtime},'HH24:MI') then i can extract a string, which could be decimalised, but only if the budget is under 24 hours.
all i need is a decimal with no limits... e.g. so that "86:30" becomes decimal
86.5
can any oracle gurus show me the way?
thanks