[SPARK-3407][SQL]Add Date type support

How about turning `Date`/`Timestamp` comparison to `Long` comparison? String and long representations of `Timestamp` are both accurate to seconds.