Datepicker: reject dates with two year digits when expecting 'yy'

Fixes #8353
Closes gh-1248