@@ -44,12 +44,18 @@ http://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html[i
44
44
[[built-in-date-formats]]
45
45
==== Built In Formats
46
46
47
- Most of the below dates have a `strict` companion dates, which means, that
48
- year, month and day parts of the week must have prepending zeros in order
49
- to be valid. This means, that a date like `5/11/1` would not be valid, but
50
- you would need to specify the full date, which would be `2005/11/01` in this
51
- example. So instead of `date_optional_time` you would need to specify
52
- `strict_date_optional_time`.
47
+ Most of the below formats have a `strict` companion format, which means that
48
+ year, month and day parts of the week must use respectively 4, 2 and 2 digits
49
+ exactly, potentially prepending zeros. For instance a date like `5/11/1` would
50
+ be considered invalid and would need to be rewritten to `2005/11/01` to be
51
+ accepted by the date parser.
52
+
53
+ To use them, you need to prepend `strict_` to the name of the date format, for
54
+ instance `strict_date_optional_time` instead of `date_optional_time`.
55
+
56
+ These strict date formats are especially useful when
57
+ <<date-detection,date fields are dynamically mapped>> in order to make sure to
58
+ not accidentally map irrelevant strings as dates.
53
59
54
60
The following tables lists all the defaults ISO formats supported:
55
61
0 commit comments