getNext

fun ZonedDateTime.getNext(dayOfWeek: DayOfWeek, countingInThisDay: Boolean = false): ZonedDateTime

Works off of ZonedDateTime context.

Return

ZonedDateTime of next DayOfWeek.

Parameters

dayOfWeek

Monday, Tues, etc, which we want to find the next instance of when going forward in time.

countingInThisDay

When true, & context's DayOfWeek matches param, then return context, else go next week.