CalendarYearToWaterYear

Syntax

CalendarYearToWaterYear(CalendarYear, CalendarMonth)

Description

Convert calendar year to water year (will be the same if water year starts in January).

Examples

CalendarYearToWaterYear(2020, 1) = 2020 if water year starts in January
CalendarYearToWaterYear(2020, 1) = 2020 if water year starts in October
CalendarYearToWaterYear(2020, 10) = 2020 if water year starts in January
CalendarYearToWaterYear(2020, 10) = 2021 if water year starts in October, because October 2020 is part of water year 2021