much faster getindex on array of dates