>Hi all.
>The question says itself!
>
>Has anybody a solution?
>
>
>Best regards
>
>Per Simmersholm
Well, the question is open to interpretation. But, if the question means how can I find the first day of the week for a given week number in the year, then try this:
*-- Start
FUNCTION Day1
PARAMETERS lnWeek
LOCAL lnThisWeek, ldTodayInWeek, ldFirstDayInWeek
lcThisWeek = WEEK( DATE())
ldTodayInWeek = DATE() - ((lcThisWeek - lnWeek) * 7)
*-- Now to get first day of week
ldFirstDayInWeek = ldTodayInWeek - ( DOW( ldTodayInWeek) - SET("FDOW"))
RETURN ldFirstDayInWeek
*-- End
Which will work with the current settings of FWEEK and FDOW