Free Support Forum -

Received Date Not extracted properly for Particular Emails


Our application uses Aspose email 17.8 jar

We are facing while extracting date for particular emails. we are using mailMessage.getLocalDate() method. We have downloaded the mails (eml) files and found that the date format for these emails are different from normal date format. Example given below:

Normal date format in eml files: Date: Thu, 25 Mar 2021 22:00:25 +0530

Date format for issue eml files: Date: 17 MAR 21 04:01:11 UT

For these emails mailMessage.getLocalDate() is returing “2001-01-01“.

Could you please provide a way to parse the date properly with this version.

Thank you for your request. There were many improvements after version 17.8. Please check the issue with the latest version of Aspose.Email.

If the error persists, please share the following:

  • The email file example (you can compress the file to a ZIP archive and upload it)
  • The code example reproducing the issue