CrmTypes.CreateCrmDateTimeProperty Method
Creates an instance of a DateTime attribute represented as a dynamic entity.
Syntax
[Visual Basic .NET]
Public Shared Function CreateCrmDateTimeProperty(
ByVal name As String,
ByVal value As CrmDateTime
) As CrmDateTimeProperty
[C#]
public static CrmDateTimeProperty CreateCrmDateTimeProperty(
string name,
CrmDateTime value
);
[JScript]
public static function CreateCrmDateTimeProperty(
name : String,
value : CrmDateTime
) : CrmDateTimeProperty;
Parameters
name
Specifies the name of the attribute.
value
Specifies the value of the attribute.
Return Value
Returns a CrmDateTimeProperty type.
Example
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the CrmDateTimeProperty.
CrmDateTimeProperty dateTimeProp
= CrmSdk.CrmTypes.CreateCrmDateTimeProperty("modifiedon",
"5/27/2005T12:00:00");
See Also