weeknum() Function
This function may not be compatible with all features of Appian. For details, see the Feature Compatibility section below.


weeknum( date, methodology )

Returns the week number within the year for the given date using a given methodology.


Keyword Type Description



The date for which the week number will be determined.



Controls what day is the first of the week with 1 correlating with the week beginning on Sunday and 2 correlating with the week beginning on Monday. The default value of methodology is 1.



1 is returned for any week that contains January 1st.

Usage considerations

  • The last days of the year will return 1 if the first day of the next year is within the same calendar week. For example, the date December 31, 2021 is on a Friday, so this will return 1 because the date January 1, 2022 is on the Saturday of that week.


weeknum(date(2011,12,13)) returns 51

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Custom Record Field Expressions Compatible
Open in Github Built: Fri, Aug 12, 2022 (10:01:45 AM)

On This Page