year Week number (using the 4-4-5)

Hi,

how to get the year Week number (using the 4-4-5)

for example, if the date is 1/31/2017… it is the fifth week using the 4 4 5 calendar so the output should be 201705

wkOfYr Function

Global::weekOfYear Method

Week numbers in Dynamics AX

    date    currentDate = systemDateGet();
    ;
    
    info(strFmt("%1%2", year(currentDate), wkOfYr(currentDate)));