Convert the rest of the date calculations to use the date_ymd struct