Strftime deflator for DateTime objects.
When you redisplay a form to the user following an invalid submission,
any fields with DateTime inflators will stringify to something like
1970-01-01T00:00:00. In most cases it makes more sense to use the same
format youve asked the user for. This deflator allows you to specify a
more suitable and user-friendly format.
This deflator calls DateTimes strftime method. Possible values for
the format string are documented at
If you set the forms locale (see locale in HTML::FormFu) this is set on the DateTime object. Now you can use %x to get the default date or %X for the default time for the objects locale.