Monday, 9 February 2009

Putting a DateTime value in a CrmDateTime field

When you want to assign a DateTime value to a CrmDateTime field while using the Webservice API it is not as simple as converting the DateTime field to a string and assigning the value.

The string has to be in a specific format.

CrmDateTime sEndDate = new CrmDateTime(MyDateTimeValue.ToString(ā€œsā€));


from here: http://kennyvaes.wordpress.com/2009/02/03/putting-a-datetime-value-in-a-crmdatetime-field/

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home