Date Formatter
If a document chunk matches either:
-
A custom input format defined with UNIX date syntax, for example,
%Y/%m/%d %H:%M:%S
(see Indexing Options for Date Properties) -
One of the automatically recognized date formats (see Automatically Recognized Input Formats)
The Date Formatter generates three additional document chunks, each with its own context name, using the following naming convention:
-
$inputContext$dateTimeOutputContext
(default format:%Y/%m/%d-%H:%M:%S
) -
$inputContext$dateOutputContext
(default format:%Y/%m/%d
) -
$inputContext$timeOutputContext
(default format:%H:%M:%S
)Note: You can also define specific output formats in the config XML.
Automatically Recognized Input Formats
If no input format is specified, the Date Formatter automatically recognizes dates in the following formats.
-
RFC 822 and 2822
-
ISO 8601 and RFC 3339
-
Other (‘day’ and ‘month’ values are only recognized if written in English):
-
"day, DD month YYYY hh:mm:ss"
-
"day, DD month YYYY hh:mm:ss timezone"
-
"day, DD month YY hh:mm:ss"
-
"day, DD month YY hh:mm:ss timezone"
-
"day month DD YY hh:mm:ss"
-
"day month DD hh:mm:ss timezone YYYY"
-
"DD month YYYY hh:mm:ss"
-
"YYYY/MM/DD hh:mm:ss"
-
"YYYY/MM/DD-hh:mm:ss"
-
"MM/DD/YYYY hh:mm:ss"
-
"MM-DD-YYYY hh:mm:ss"
-
"MM/DD/YYYY"
-
"MM-DD-YYYY"
-
Output Formats
The default output formats are:
-
date-time:
%m/%d/%Y %H:%M:%S
-
date:
%m/%d/%Y
-
time:
%H:%M:%S
Note: You can also define specific output formats in the XML configuration, using UNIX date syntax.