Is this what you want?
In advanced flows you can combine X-mas and newyears-eve like this
I love the community - thank you for helping out!
@Wim_Post love it, thanks, I missed it again. ![]()
![]()
Thanks
Great to see and happy new year for everyone ![]()
![]()
![]()
![]()
First, I’d like to thank you for the app and the time you have put into it for the community.
Second, I have some JavaScripts that I think I can convert into flow cards.
// weekday constants for readability
const MON = 1;
const TUE = 2;
const WED = 3;
const THU = 4;
const FRI = 5;
const SAT = 6;
const SUN = 0;
// Nth weekday of a month (e.g., 3rd Monday)
function nthWeekday(year, month, weekday, n) {
const first = new Date(year, month - 1, 1);
const firstWeekday = first.getDay();
const offset = (weekday - firstWeekday + 7) % 7;
const day = 1 + offset + (n - 1) * 7;
return new Date(year, month - 1, day);
}
// Last weekday of a month (e.g., last Monday)
function lastWeekday(year, month, weekday) {
const last = new Date(year, month, 0); // last day of month
const lastWeekday = last.getDay();
const offset = (lastWeekday - weekday + 7) % 7;
return new Date(year, month - 1, last.getDate() - offset);
}
// Main APS holiday resolver
function getApsHolidays(year) {
return {
"New Year's Day": new Date(year, 0, 1),
"Martin Luther King Day": nthWeekday(year, 1, MON, 3), // 3rd Monday
"Presidents Day": nthWeekday(year, 2, MON, 3), // 3rd Monday
"Cesar Chavez Day": new Date(year, 2, 31), // Mar 31
"Memorial Day": lastWeekday(year, 5, MON), // Last Monday in May
"Juneteenth": new Date(year, 5, 19), // Jun 19
"Independence Day": new Date(year, 6, 4), // Jul 4
"Labor Day": nthWeekday(year, 9, MON, 1), // 1st Monday in September
"Indigenous Peoples' Day": nthWeekday(year, 10, MON, 2), // 2nd Monday in October
"Veterans Day": new Date(year, 10, 11), // Nov 11
"Thanksgiving": nthWeekday(year, 11, THU, 4), // 4th Thursday in November
"Christmas Eve": new Date(year, 11, 24),
"Christmas Day": new Date(year, 11, 25),
"New Year's Eve": new Date(year, 11, 31)
};
}
Hopefully you can make use of them for your next release.