Provides support for converting dates to strings and vice-versa.
The strings are structured so that lexicographic sorting orders by date,
which makes them suitable for use as field values and search terms.
Note that this class saves dates with millisecond granularity,
which is bad for
RangeQuery and
PrefixQuery , as those
queries are expanded to a BooleanQuery with a potentially large number
of terms when searching.
Provides support for converting dates to strings and vice-versa.
The strings are structured so that lexicographic sorting orders
them by date, which makes them suitable for use as field values
and search terms.
This class also helps you to limit the resolution of your dates.