You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Friaa Nafaa <fr...@excite.com> on 2002/11/04 11:22:57 UTC

Getting the last modified date

 Hello,Pleease can I get the last modified date of an indexed document by lucene, I know how to use the field "modified" of the file but this field return a long that can't be interpreted as a date (like a string ex. : A65tR887).

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Re: Getting the last modified date

Posted by Karl Marx <ka...@gan.no>.
To convert the long to a string you can use the java.text.DateFormat 
class.

mvh karl øie


On Monday, Nov 4, 2002, at 11:22 Europe/Oslo, Friaa Nafaa wrote:

>  Hello,Pleease can I get the last modified date of an indexed document 
> by lucene, I know how to use the field "modified" of the file but this 
> field return a long that can't be interpreted as a date (like a string 
> ex. : A65tR887).
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>