Share via


CrmTypes.CreateCrmDateTime Method

banner art

Creates an instance of a DateTime attribute.

Syntax

[Visual Basic .NET]
Public Shared Function CreateCrmDateTime(
  ByVal value As String
) As CrmDateTime

[C#]
public static CrmDateTime CreateCrmDateTime(
  string  value
);

[JScript]
public static function CreateCrmDateTime(
  value : String
) : CrmDateTime;

Parameters

value

Specifies the value of the attribute.

Return Value

Returns a CrmDateTime type.

Example

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the DateTime attribute.
CrmDateTime dateTime = CrmSdk.CrmTypes.CreateCrmDateTime("5/27/2005T12:00:00");

See Also

© 2007 Microsoft Corporation. All rights reserved.