I am trying to minus or subtract by 1 the academic year of school year with this format, e.g. "2020-2021"
If it is 2020-2021
, I would like to change it 2019-2020
. Is there a way to solve this concern?
I considered trying to subtract using a hyphenated expression, but I am pretty stuck.
echo "2020-2021"-"1-1";
echo "Result: 2019-2020";