Adapt year to period