Within a calendar year I have two season one runs May to September & the other runs October to April.
I have a form where a user selects a check-in and check-out date. I basically need to figure out how many days from their selected stay falls in each of the seasons.
I'm unsure how I go about this? I'm currently using date-fns and formatDistanceStrict to workout how many days they are staying just not sure how to do the above any guidance would be appreciated