MPXJ in .NET converting java Date to .NET DateTime
- by Jeff
I'm using the MPXJ library in .NET for parsing MS Project (MPP) files, and it's working great. The one issue I'm having is trying to translate the task Start and Finish date into .NET DateTime to use with my data models.
I am going through all the tasks and calling task.getFinish() and task.getStart() that both return javva.util.Date objects.
When I use task.getFinish().getYear(), task.getFinish().getMonth(), etc. to build up a new DateTime object it warns me that they are obsolete.
What is the best way to get the start and finish dates from MPXJ into a .NET DateTime object?
Thanks.