Find closest year
This function takes a date as input and returns the closest year.
date
find_closest_year(date)
date: [character(1)]
character(1)
The date in format "YYYY-MM-DD".
"YYYY-MM-DD"
An integer, the closest year to the input date.
integer
Useful links