Update timestamp of documents

I want to know when a particular document in an index was created, and when it was last modified. Is there a way or do we have to keep track of this manually?

Have a look at this thread.