For each date in your array calculate the delta between it and the target date, select the one with the lowest delta? Date::Calc/Date::Manip.
In reply to Re: choosing closest date to a given date
by marto
in thread choosing closest date to a given date
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |