Issue #3437325 by narendraR, phenaproxima, alexpott, Wim Leers: Add validation constraints to system.date (cherry picked from commit 8cd02c7f)