A validator used to validate dates that originate from an input string. Any locale
supported by Dart is supported here, but en_US is the default. There is a dependency
on Intl.dart so you will need to set Intl.defaultLocale (e.g. Intl.defaultLocale = 'en_GB')
and call initializeDateFormatting. See the unit tests for an example.