Add start date to a new Task with CSOM


  • Hello

    I’m working on a project where I have to export projects form an existing system to Project Online and I’m working with the CSOM to do so.

    The problem I’m having is when I try to change the Start property for a task. When I try to set it works fine except it changes the month and the day of the date time when the project is added to the PWA.


                draftTask.Start = new DateTime(2014, 9, 10);

    This would change the tasks start date to 9<sup>th</sup> October 2014 and not as I would expect the 10<sup>th</sup> September 2014


    If anyone knows what the problem is I would appreciate the help.


    Thank you,



    Kamis, 04 September 2014 07.07

Semua Balasan

  • try this instead and let us know the results 

    draftTask.Start = DateTime.Parse("Oct 9, 2014 05:00:00 PM");

    Thanks | epmXperts |

    Kamis, 04 September 2014 14.03
  • I have the same thing happing where it swaps the day and the month of the datetime with this method.  Also it ignores the 05:00:00 PM and just sets the time to 08:00:00 AM.

    So in this case I end up with 10<sup>th</sup> September 2014 08.00 in the project.

    Jumat, 05 September 2014 06.08
  • Hi Everyone, I'm going through the same problem.

    Has anyone found a solution?


    Kamis, 25 Oktober 2018 13.56