parse year to int