How to calculate the date of Monday of the week if you know the week number of the year?

Updated: 27.07.2014


static TransDate getMondayDateByWeek(Week _week)
TransDate transDate;
TransDate firstJanuary = mkDate(1, 1, year(systemDateGet()));
int firstDayofWeek = dayOfWk(firstJanuary);
int dayOfYear;
if (_week == 1)
return firstJanuary;

dayOfYear = 7 - firstDayofWeek + 1 + (7 * (_week - 1)) - 7;

transDate = dateStartYr(systemDateGet()) + dayOfYear;
return transDate;


Other blog posts

How small business shall work with major contracts. Opinion of Ruslan Kafiatullin from Neti Projects from scratch are always riskyAs a rule, implementation projects from scratch are always...
Why outsourcing company is more effective than In-house IT-specialists There are situations when in-house specialists spend most of their time awaiting requests or they cannot get their work...
Microsoft Dynamics AX program decisions are constantly improving. At first, innovations come to European companies, and only after that to Russian enterprises.We aspire to be one step ahead in this...

Subscribe for blog updates

Get updated with our blog new articles via your email!

Subscribe now