Default Date/Time Parsers
- reference
Use a date/time parser to tell the Search Service how to interpret date and time data in your documents.
You can use one of the default date/time parsers, or create your own.
Set the default date/time parser for your Search index from the Server Web Console’s' Advanced Settings or your JSON Search index definition.
You can also set a date/time parser when using Date Range facets or a date range query.
The following default date/time parsers are available:
Date/Time Parser | Description |
---|---|
The |
|
unix_micro |
The |
unix_milli |
The |
unix_nano |
The |
unix_sec |
The |
dateTimeOptional Layouts
The following layouts are included in the dateTimeOptional
date/time parser:
Layout | Example Date/Time String |
---|---|
|
2023-09-15T14:24:50.1567+05:30 |
|
2023-09-15T14:24:50+05:30 |
|
2023-09-15T14:24:50 |
|
2023-09-15 14:24:50 |
|
2023-09-15 14:24:50 +0530 |
|
2023-09-15 |
Defaults for Missing Date/Time Values
If a date/time string is missing a value, the Search Service uses the following default values to make a complete date/time string:
Value | Default |
---|---|
Month |
01/January |
Day |
01 |
Hour |
00 |
Minute |
00 |
Second |
00 |
Timezone |
UTC |
Timezone Offset from UTC |
+00:00 |
Fraction of a second |
nil |