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);
}