KB Article #181083
Week evaluation in the date() function
Problem
How to use the date() function to get the week in expressions?
Resolution
The week is set using the WW or the ww format in the date() function.
WW will evaluate to the week number in the current month
ww will evaluate to the week number in the current year
For example, if you want to use a "week-year" or "week-month-year" string in a PTA, you can use expressions like:
${date("ww-yyyy")} or ${date("WW-MM-yyyy")}
Reference: Java Simple Date Format