handle year format