Convert to date before comparison.