RESOLVED: I put the dates in a list, sorted the list and grabbed item 0. Brain Fart Time: Findin...

This should not be this hard, but I just can’t seem to think. I have a set of records associated with a deal. I’m looping through them. I need to find the closest date out of all of the records. I attempted date compare (daysBetween) but it’s not working and I’m sure I’m doing something stupid.

How would you do it if you need to? I thought about doing a SQL query, but I can’t remember how to do that in zoho. Thought I’d query and order by date and grab the date of the first record.