Populate selectlist with latest 5 years

Viewed 4048

How am I able to create a list with the last 5 years in it, such as the years 2011 to 2007. I don't want to hard code the years, but I want the most recent 5 years based on the current year.

3 Answers
Related