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

Free Support Forum - aspose.com

Year issue when adding Rates to a resource

Lets assume this is in my code:

Rate opRate = new Rate();

opRate.RateTable = RateType.A;

opRate.StandardRate = 100;

opRate.OvertimeRate = 0;

opRate.StandardRateFormat = RateFormatType.Hour;

opRate.CostPerUse = 0;

opRate.RatesTo = new DateTime(2010,5,10);

opRate.RatesFrom = new DateTime(2009,6,11)

opResource.Rates.Add(opRate);

in the output XML I get the following:

Rates>

2000-06-11T00:00:00
2000-05-10T00:00:00
0
100
2
0
1
0

Why is the year part of the date changing to 2000?

Thanks in advance,

Sean.

EDIT: Infact this is happening to all dates in the project ie task start/finish etc

I am guessing this is something I have set incorrectly... Any help would be appreciated.

Whoops! I just checked the documentation and I need to apply the lic file (which I just recieved)

Please feel free to destroy this post.

Regards,

Sean.