CrmDateTime Problem RRS feed

  • Question


    I don"t know why when i add this Line Code " send = dta.AddMonths(18);"


    I don"t See any Record that Create AND I don"t get any Errror at srv.Create (myphonecall);


    if i delete  " send = dta.AddMonths(18);"  its create the record with the crm but date eq to Now


    How Can Add 18 AddMonths???????


    ////////////////////MY CODE///////////////////////////////////////

    DateTime dta = new DateTime();

    DateTime send = new DateTime();

    dta = DateTime.Now;

    send = dta;

    send = dta.AddMonths(18);

    CrmDateTime dateTime = new CrmDateTime();

    dateTime.Value = send.ToString("s");

    myphonecall.scheduledend = new CrmDateTime ();

    myphonecall.scheduledend = dateTime;


    srv.Create (myphonecall);


    Wednesday, July 23, 2008 2:40 PM


  • what exactly are you trying to do?  Are you updating the due date on an existing phone call, or are you creating a new one with a due date of 18 months from today?
    Thursday, July 24, 2008 2:24 PM