This ticket is strongly related to Start and Finish dates of task not getting reflected .
As an input for exporting into .mpp file I have got Start date and Finish date . I need to transfer those dates info .mpp file without changes.
From the ticket mentioned above Mr. Kashif Iqbal says: “The recommended method to set task parameters is to use task start date and duration. It will make no change in the constraint type and date as well.”
I followed the ticket until the end, but unfortunately with no positive results.
Finally, with some tweaks I have got this code.
double totalHours = cal.GetWorkingHours(Convert.ToDateTime(“2019,07,08”), Convert.ToDateTime(“2019,07,22”)).WorkingHours.TotalHours;
totalHours += 8;
task.Set(Tsk.Duration, project.GetDuration(totalHours, TimeUnitType.Hour));
In most cases this code gave me those dates preserved. But there were exceptions.
If any date is Saturday or Sunday, the result is always next Monday.
How to allow weekend dates?
How to keep StartDates and FinishDates unchanged against input values?
Thank you for your time.