year array to date