How do I compare dates as I retrieve them from the resultset. for example I’m trying to find out whether the current date retrieved by the resultset is before or after the previous date retrieved by the resultset