I have three code. This is the first one in which I get the metadata information of any url and in that metadata I have LastModified date also. If I run this class then I ge
The first piece of code extracts the date from the metadata of the PDF file, while the two other ones get the information from the HTTP headers returned by the Web server. The first one is probably more accurate if you want to know when the document was created/modified.