In Sage ERP X3, you may come across the situation where you need to know start date of any week for any particular year. Sage X3 provides function to get the same.
New Stuff:Use the solutions feature to build a Knowledge Base
Function Name: aweek (week_exp, year_exp)
Week_exp – Expression of the Integer type that gives the number of the week.
Year_exp – Expression of the Integer type that gives the number of the year.
Description: The aweek function allows you to calculate the date of the first day (Monday) of a given week for a given year. The weeks are numbered from zero to 53. The first week of the year is the one that includes the first Thursday of the year. If the first day of the year is a Friday, Saturday, or Sunday, there is therefore a week zero (0), which goes from January 1st to the first Sunday of January, inclusive.
To implement it refer the below screen shot :
Hope this helps.
Also Read:
1. How to define days for Expected Issue date calculation of Prepayment
2. How to handle two digit year in date
3. Change date format of the current folder in Sage ERP X3
4. Find earliest date from range of dates
5. Login Warning on Logical Date in Sage X3