baan999
28th September 2011, 15:31
I want to derive total days

e.g. user define in the parameter as below

option1-

01-01-2011 to 31-08-2011 ( no of days require to be diplayed/printed) as output

option2-
e.g. whinr100.trdt and system date ( no of days to be displayed/printed) as output

where and how to define ..pl. provide with example

JaapJD
28th September 2011, 17:09
Working days or calender days?

baan999
29th September 2011, 07:00
calendar days....

JaapJD
29th September 2011, 09:28
Extract the year,month,date from the utc date with utc.to.date(). Convert it to a date with date.to.num(). Do this for both utc dates. The difference between both results is the number of days.