Giro recommends replacement three years from "purchase". Although I have noticed the helmets I have owned have a date stamp, which I assume is the production date. I guess the helmet doesn't start aging until the cash is set down.
I try and buy a newer helmet, less than a year from production then follow the manufacturers guideline. I know that motorcycle helmets are commonly recommended to be replaced at five years.