Properly formatted dates (yyyy-mm-dd) can be alphabetically sorted. Just select the first one after sorting.
update:
perl -e ' print ${ [ sort ( split ( ";" => "2003-12-17;2003-12-09;2003-04-03" )) ] }[0] 'In reply to Re: Choosing the closest date...
by fglock
in thread Choosing the closest date...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |