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)


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


Return Value

Type: System.DateTime

Returns DateTime.


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