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

Free Support Forum - aspose.com

Wrong Date is fetched from MPP file

I am using following code to fetch Data about tasks. In MPP file start and finish date are Mon 10/12/09 and Fri 10/30/09 respectively. But they are getting retrieved as 10/12/2000 8:00:00 AM and 10/30/2000 5:00:00 PM.

            TaskCollection children = parentTask.getChildren();
			Iterator<Task> iterator = children.iterator();
			List<Object> childs = new ArrayList<Object>();
			while(iterator.hasNext()) {
	     		Task task = iterator.next();
                Date date = task.get(Tsk.START);
                Date finishDate = task.get(Tsk.FINISH);
                System.out.println(" Start and finish date for task are " + date + " :: " +finishDate);
				childs.add(task);
			}

@ketaki2092,

You are facing evaluation version limitations that are imposed in case you are not using a license while working with the API. You can get a 30-day temporary license free of cost for evaluating the API without any limitations. Please let us know if you have any further query in this regard.