Date problem - Trial free temporary license

I already have a free temporary license for 30 days, (my license is still valid)

but I difference in months. so if I did; 2016-08-26 at 8:00AM Aspos.tasks poster 2016-09-26 at 8:00AM !!
public class Aspose {

public static void main(String[] args) {
License license = new License();
try {
license.setLicense(new java.io.FileInputStream("Aspose.Tasks.lic"));
System.out.println("setLicense Aspose OK.");
} catch (FileNotFoundException fnf) {
System.out.println("setLicense Aspose FileNotFoundException");
} catch (Exception ex) {
System.out.println("setLicense Aspose Exception" + ex.getMessage());
}

java.util.Calendar calTimeStart = java.util.Calendar.getInstance();
java.util.Calendar calTimeFinish = java.util.Calendar.getInstance();

calTimeStart.set(2016,8,26,8,0,0); //input 26 August 2016 at 8:00 AM
System.out.println("calTimeStart" + calTimeStart.getTime()); //output 26 September 2016 at 8:00 AM

Project prj = new Project();
Task tsk = prj.getRootTask().getChildren().add("Task1");
tsk.set(Tsk.START, calTimeStart.getTime());

System.out.println("calTimeStart" + tsk.get(Tsk.START)); ////output 26 September 2016 at 8:00 AM

}

Hi,


Thank you for posting your inquiry.

It is the behavior of java.Util.Calendar API that gives raise to this sort of output. In Java, months start from 0 rather than 1. Please check the following links for further information.