Partager via


OrganizationServiceContextExtensions.LocalTimeFromUtcTime Method (OrganizationServiceContext, Int32, DateTime)

 

Applies To: Dynamics CRM 2015

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

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

Syntax

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

Parameters

Return Value

Type: System.DateTime

Returns DateTime.

Remarks

This is a method wrapper for the LocalTimeFromUtcTimeRequest and LocalTimeFromUtcTimeResponse 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