Find the First Monday of Every Month
Easy
Given an input year, generate a list containing the date of the first Monday of every month for that year.
For example, for 2026, the output should contain 12 dates—one for each month.
ri! Rule Inputs
ri!yearNumber (Integer)2025
Example 1 — Case 1
Input: ri!year
2026
Output:
{
1/5/2026,
2/2/2026,
3/2/2026,
4/6/2026,
5/4/2026,
6/1/2026,
7/6/2026,
8/3/2026,
9/7/2026,
10/5/2026,
11/2/2026,
12/7/2026
}Example 2 — Case 2
Input: ri!year
2025
Output:
{
1/6/2025,
2/3/2025,
3/3/2025,
4/7/2025,
5/5/2025,
6/2/2025,
7/7/2025,
8/4/2025,
9/1/2025,
10/6/2025,
11/3/2025,
12/1/2025
}Example 3 — Case 3
Input: ri!year
1998
Output:
{
1/5/1998,
2/2/1998,
3/2/1998,
4/6/1998,
5/4/1998,
6/1/1998,
7/6/1998,
8/3/1998,
9/7/1998,
10/5/1998,
11/2/1998,
12/7/1998
}Appian Expression Tips
- • Use
ri!variableNamefor rule inputs - • Use
a!localVariables(local!x: …, body)for locals - • Use
a!forEach(items: …, expression: fv!item)to iterate - • Use
where()/reject(fn!isnull, list)to filter