Check if the interval between two dates is less than a year
within_a_year(date1, date2)
date1
the first date by chronological order
date2
the second date by chronological order
a boolean