/*changes month view to next month*/
Set(_firstDayOfMonth, DateAdd(_firstDayOfMonth, 1, TimeUnit.Months));
Set(_firstDayInView, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth)), TimeUnit.Days));
Weekday
function with an optional second parameter to set the week to start on Saturday. This will align the calculations with your desired week structure. Replace Weekday(_firstDayOfMonth)
with Weekday(_firstDayOfMonth, StartOfWeek.Saturday)
._firstDayOfMonth
and _firstDayInView
remains consistent with this adjustment. Exampel: when moving to the next month: - Set(_firstDayOfMonth, DateAdd(_firstDayOfMonth, 1, TimeUnit.Months));Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.