Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
date
Type: System.DateTimeThe local date and time value to convert.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<DateTime>
The date converted to UTC.