Create Date from Weeknumber

Discussions specific to Team Developer 5.1.

Create Date from Weeknumber

Postby cybervir » Wed Jun 01, 2011 1:32 am

Hi there

I am looking for a fuction to create a Date from a given Weeknumber. Can anybody help me? There are many SalDate....-functions but i did not found one for my case.

Thanks for any help,

Posts: 14
Joined: Thu Mar 06, 2008 6:57 am

Re: Create Date from Weeknumber

Postby Jeff Luther » Wed Jun 01, 2011 2:36 pm

create a Date from a given Weeknumber

I guess you mean that given a # you'd get that Sunday (or Monday?) date.

If so, you might be able to write your own function that computes this:
Given a lookup table of # of days in each month
Date of the week for 1/1/20xx

Maybe you even find such an algorithm on the 'net and transliterate it into SAL. I searched for "algorithm weeknumber to date" and got some returns.
Jeff Luther

Return to Team Developer 5.1

Who is online

Users browsing this forum: No registered users and 2 guests