I did a search in the Monastery for similar threads, and only found 1, but not very helpful. The task I want to perform is, given a specified date, select the one that is closest to it and also, be able to say if the "closest" date is in the future or in the past, relative to the specified one. My input is (after my pre-processing) an array of dates, from which I need to pull the closest one to the one that I will specify externally. Are there modules for this available?