Setting dates

There is a problem with date setting in Project class as well as in Task. A year of the date seems to bee constant. No matter what date I set, there is always year 2000.


The test I did:
-------------------------
public static void main(String[] args) {

Project project = new Project();
project.set(Prj.NAME, “Name”);
project.set(Prj.START_DATE, LocalDate.now().toDate());
project.set(Prj.CURRENT_DATE, LocalDate.now().toDate());
project.set(Prj.TITLE, “Title”);
project.set(Prj.SCHEDULE_FROM_START, NullableBool.to_NullableBool(true));

project.save("~/Desktop/ms-project-" + System.currentTimeMillis() + “.xml”, SaveFileFormat.XML);
}
Result of the test you can find in attachment.

Hi,


Thank you for contacting Aspose support team.

It seems that you are not using valid license, that is why you are facing this behavior. You may please visit this link to get information about the evaluation limitation. If you want to test all the features without any limitation, please apply for a temporary license as mentioned in the link mentioned above.

Please feel free to write us back if you have any other query in this regard.