Hi Team,
I am trying to format “Sent” datetime in the header and getting FormatException: String is not a valid date time stamp… I am using aspose.email-19.1 for java.
emlMailMessage.getHeaders().set_Item(“Date”, new SimpleDateFormat(“EEEE, dd-MM-yyyy HH:mm:ss”).format(eml.getDate()));
this works without “EEEE”. Is there any way to show day of the week by keeping the formatting dd-MM-yyyy HH:mm:ss?