Jaa


OrganizationServiceContextExtensions.UtcTimeFromLocalTime Method (OrganizationServiceContext, Int32, DateTime)

 

Applies To: Dynamics CRM 2015

Retrieves the UTC time for the specified local time. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static DateTime UtcTimeFromLocalTime(
    this OrganizationServiceContext context,
    int timeZoneCode,
    DateTime localTime
)
public:
[ExtensionAttribute]
static DateTime UtcTimeFromLocalTime(
    OrganizationServiceContext^ context,
    int timeZoneCode,
    DateTime localTime
)
static member UtcTimeFromLocalTime : 
        context:OrganizationServiceContext *
        timeZoneCode:int *
        localTime:DateTime -> DateTime
<ExtensionAttribute>
Public Shared Function UtcTimeFromLocalTime (
    context As OrganizationServiceContext,
    timeZoneCode As Integer,
    localTime As Date
) As Date

Parameters

Return Value

Type: System.DateTime

Returns DateTime.

Remarks

This is a method wrapper for the UtcTimeFromLocalTimeRequest and UtcTimeFromLocalTimeResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright