MPXJ in .NET converting java Date to .NET DateTime
Posted
by Jeff
on Stack Overflow
See other posts from Stack Overflow
or by Jeff
Published on 2010-06-17T01:38:03Z
Indexed on
2010/06/17
1:42 UTC
Read the original article
Hit count: 274
mpxj
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.
© Stack Overflow or respective owner