Something like =MAX(FILTER(B:B,A:A="apples"))
should work.
(Note that, unless the cell with this formula is formatted for Dates, this will show as a number, instead of a date, that can then be formatted as a date by right-clicking->Format Cells...->Date.)