We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not a valid Win32 FileTime (Setting ClientSubmitTime)

In 6.1.0


I get this from a source emails ClientSubmit Time:

{1/1/0001 12:00:00 AM}

When I try to set it to the destination, I get the above message.

Is this a bug or is that really an invalid value to try to set into an email ?

Hi Dave,

Thank you for writing to Aspose Support team.

This is not an issue with Aspose.Email but can be re-produced as follows:

DateTime dt = DateTime.Parse(“1/1/0001 12:00:00 AM”);
long ltime = dt.ToFileTime();//Here is the exception

Please notice that the oldest valid date/time for Win32 FileTime structure (Microsoft defined computer data type) is 00:00:01am Jan. 01,1601 in UTC (Universal Time Coordinated).

Yes, I agree that 1601 data is the min FileTime.

I was just very surprised that we need to convert to a FileTime I suppose since DateTime can hold older dates than this

Hi Dave,


You are right that the DateTime can hold older dates than this. However, the current implementation is as we have shared with you and meet the requirements of modern world requirements. Please let us know if you have any other query related to the API.