test diff between two dates out of result set