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

Will that be more efficient `new Timestamp(d.getTime())`?