Hello,
I’m trying to create a MapiNote with a custom “creation date” using the following code but it isn’t working:
MapiNote note = new MapiNote();
note.setSubject(“test subject”);
SimpleDateFormat dateFormat = new SimpleDateFormat(“dd-MM-yyyy HH:mm:ss”);
dateFormat.setTimeZone(TimeZone.getDefault());
Date dt = dateFormat.parse(“08-10-2020 10:30:00”);
note.setCreationDate(dt);
Can you tell me what’s wrong with it?
Thanks