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
Không có nhận xét nào:
Đăng nhận xét