closest date extension for arrary of dates