Skip to contents

This function returns the current season in the format "YYYY-YY". The season is determined based on the current date:

  • If the current date is before July 1st of the current year, the season is "previous year - current year".

  • If the current date is after or on July 1st, the season is "current year - next year".

Usage

get_current_season()

Value

A character string representing the current season.