Hello, You may have a display bug in Axapta's calendar. If you have a week 53 and a week 2 (i.e. NO week 1), this is the case.
Fix it in global::WeekOfYear(). Change 1 to 2 and 2 to 1 in the case-statements; that will do the trick... /Jens -----Oprindelig meddelelse----- Fra: Danny Gaethofs [mailto:[EMAIL PROTECTED] Sendt: 4. februar 2005 09:52 Til: Axapta-Knowledge-Village@yahoogroups.com Emne: [Axapta-Knowledge-Village] Re: wkofyr Dear Alfonso, What date are you submitting? If you run these lines of code in a job: print wkofyr(SystemDateGet()); print SystemDateGet(); pause; Tell us the results. In my environment I get week 5, date 4-2-2005. Which is correct. If that is not the case at your side, then have a look at your system date settings. regards, Danny --- In Axapta-Knowledge-Village@yahoogroups.com, Alfonso Collados Arroyo <[EMAIL PROTECTED]> wrote: > Hi all: > > I 'm using the wkofyear function and I see that this function returns always > one week less . Why? > > Thanks > > Alfonso Sharing the knowledge on Axapta. Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> What would our lives be like without music, dance, and theater? Donate or volunteer in the arts today at Network for Good! http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/kGEolB/TM --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/