Skip to Content
0
Former Member
Jul 25, 2005 at 06:14 AM

Weekdays and dates

42 Views

hi all,

i have the following two requirements. Please let me know if there are any function modules for the same.

1) I have a From-Date and a To-Date. Within this interval i want to find all the nth days of week. for example for n = 2, i want the dates for all mondays within this period.

2) again for the interval (from-to date) i want the dates on the nth weekdays. for example, for n = 4 and weekday = 2, then i want dates for all 4th mondays of month within the period.

(of course this means that the period will span for more than one month for the second requirement while for the first it can span for more than one week)

regards,

PJ