You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Peter Carlson <ca...@bookandhammer.com> on 2002/07/11 17:13:22 UTC
DateFieldYMD
Hi,
Does anyone have an objection/better idea to adding a new Class called
DateFieldYMD. This would be very similar to DateField, but return a
different format.
This would also support the field dateToString(date) and convert it to the
format
YYYYMMDD
It would also add
DateTimeToString(date) with the format
YYYYMMDDTHHMMSS
Where T is the delimiter between the date and time. Just trying to follow a
pseudo convention and minimize the bits so no delimeter.
The reason why another class vs another method are the supporting methods
such as stringToDate() or stringToTime() which decodes the string to a Date
or a long would be confusing in one class.
I think this would meet the criteria of people who need support before 1970
and be more readable.
--Peter
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>