neardate function

Find the index of the closest value in data set 2, for each entry in data set one.