However, in quantitative expressions of the following type there is possible variation:
a ten day absence
With temporal nouns in the plural, the apostrophe is sometimes omitted: several weeks'/weeks vacation
Pages 325 &1333, A Comprehensive Grammar of the English Language, by...