locked
Date Field in Appointment entity. RRS feed

  • Question

  • Hi,

    I want to create a Appointment through plug-in.

    How can i give the date fields.

    StartTime and End Time.

    like,

    appointment app=new appointment();

    app.scheduledstart="12.5.2010";

    is this correct ,

    datetime date= new datetime(2010,12,5);

    app.scheduledstart=date;

     

     

     

    Thursday, July 8, 2010 7:56 AM

Answers

  • Hi,

    you can use below code for the same


              CrmDateTime date = new CrmDateTime();
              date.Value = new DateTime(2010, 12, 5).ToString();
               _app.scheduledstart = date;


    Mahain
    • Proposed as answer by HIMBAPModerator Thursday, July 8, 2010 8:47 AM
    • Marked as answer by Mathan2631 Thursday, July 8, 2010 9:44 AM
    Thursday, July 8, 2010 8:47 AM
    Moderator