Monday, 11 February 2008
CrmDateTime conversion to DateTime
Posted on 07:32 by Unknown
When working with CrmDateTime, you'll notice that this type does have a .value attribute, but the type of this attribute is string. There is no attribute to get the .net class DateTime out of your CrmDateTime. If you do want to use a DateTime anyway, you'd easily need to convert it. You could use any of these:Convert.ToDateTime(crmdatetime.Value)DateTime.Parse(crmdatetime.Value)For more
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment