org.apache.lucene.document
Class DateTools

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. Do not
save dates with a finer resolution than you really need, as then
TermRangeQuery and PrefixQuery will require more memory and become slower.