TimeZone.LocalTimeToUTC method

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

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

Syntax

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

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

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<DateTime>
The date converted to UTC.

See also

Reference

TimeZone class

TimeZone members

Microsoft.SharePoint.Client namespace