generically retrieving year and month for archive pages