How would you go about getting the most recent date from a set of records that is less than today?
Example: Record_1 = 1/1/2016 Record_2 = 2/1/2016
If you did a soql like:
Select Id FROM Object Where Date < TODAY
You would get back both of the dates.
How do I get back just the 2/1/2016 date?