>thanks hilmar your helpful reply, but i have a question, if last date on leave day(sunday etc).how to changes this.
>
>I want to print a report.
>
>If month(date()+ 1) # month(date())
>print from 1st report
>else
>report from 2nd report
The dow() function will tell you the day of week. You can act accordingly; print the second report as stated, or (if you generate a table of events) adjust for another day.
By default, dow() will return 1 for Sunday, 2 for Monday, etc.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)