Share via


TimeZone.UTCToLocalTime method

Converts the specified date from Coordinated Universal Time (UTC) to local time.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function UTCToLocalTime ( _
    date As DateTime _
) As ClientResult(Of DateTime)
'Usage
Dim instance As TimeZone
Dim date As DateTime
Dim returnValue As ClientResult(Of DateTime)

returnValue = instance.UTCToLocalTime(date)
public ClientResult<DateTime> UTCToLocalTime(
    DateTime date
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<DateTime>
The date and time converted to their local values.

See also

Reference

TimeZone class

TimeZone members

Microsoft.SharePoint.Client namespace