Hello all...
How do I compare dates and return actual values i.e
Yesterday - today should equal 1.
Are there routines for doing this ?
(2/28/2003 - 2/1/2003) + 1 ?
Please help....
I'm actually trying to calculate tax based on the number of start and end days picked from picker1 and picker2 components.
If only a month was picked for example, then tax should be
((date2 - date1)+1 / 365)* taxrate ==> to give actual tax for a given period; where (date2 - date1) would evaluate to 30 or 31 or 28 or 29 depending on the month. A shorter period should also result in the number of days between both dates.
All help will be appreciated.
yom yom.
How do I compare dates and return actual values i.e
Yesterday - today should equal 1.
Are there routines for doing this ?
(2/28/2003 - 2/1/2003) + 1 ?
Please help....
I'm actually trying to calculate tax based on the number of start and end days picked from picker1 and picker2 components.
If only a month was picked for example, then tax should be
((date2 - date1)+1 / 365)* taxrate ==> to give actual tax for a given period; where (date2 - date1) would evaluate to 30 or 31 or 28 or 29 depending on the month. A shorter period should also result in the number of days between both dates.
All help will be appreciated.
yom yom.