Added handling for 'yearly' frequency when preparing date elements