FunctionCopy link to clipboard
weeknum( date, methodology )
Returns the week number within the year for the given date using a given methodology.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Date |
The date for which the week number will be determined. |
|
Integer |
Controls what day is the first of the week with |
ReturnsCopy link to clipboard
Integer
1
is returned for any week that contains January 1st.
Usage considerationsCopy link to clipboard
- 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 return1
because the date January 1, 2022 is on the Saturday of that week.
ExamplesCopy link to clipboard
weeknum(date(2011,12,13))
returns 51
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
FeedbackCopy link to clipboard
Was this page helpful?