convert ISO time string to day in year