peteschulte
IS-IT--Management
I need to obtain the count of days in the billing cycle. Below is one way, to use Olaf's post from before.
* billingsummary.cycle_end and cycle_star look like 03/21/09
* type is DateTime
How can I convert cycle_end and cycle_star to work with function dayofyear()?
Refer to thread 184-1016445 with the following contents.
This seems to be a great utility. I'm curious what the 'm.' is.
More than that, I need to do something to cycle_star so that I can call dayofyear(somethingFromCycle_star).
I've tried many kinds of conversions and obtained many kinds of errors, learning a lot on background.
Thank you,
Peter
Pete S
* billingsummary.cycle_end and cycle_star look like 03/21/09
* type is DateTime
How can I convert cycle_end and cycle_star to work with function dayofyear()?
Refer to thread 184-1016445 with the following contents.
Code:
* test
? dayofyear(date(2004,1,1))
? dayofyear(date(2005,3,1))
? dayofyear(date())
function dayofyear()
lparameters tdDate
return m.tdDate-date(year(m.tdDate),1,1)+1
endfunc
More than that, I need to do something to cycle_star so that I can call dayofyear(somethingFromCycle_star).
I've tried many kinds of conversions and obtained many kinds of errors, learning a lot on background.
Thank you,
Peter