_PropertyAccessor.LocalTimeToUTC Method

Converts a DateTime value specified by Value from the local time format to Coordinated Universal Time (UTC) format.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function LocalTimeToUTC ( _
    Value As DateTime _
) As DateTime
'Usage
Dim instance As _PropertyAccessor
Dim Value As DateTime
Dim returnValue As DateTime

returnValue = instance.LocalTimeToUTC(Value)
[DispIdAttribute()]
DateTime LocalTimeToUTC(
    DateTime Value
)

Parameters

  • Value
    Type: System.DateTime

    The DateTime value to be converted from local time to UTC.

Return Value

Type: System.DateTime
A DateTime value that represents Value after being converted from local time to UTC.

Remarks

For more information on type conversion when using the PropertyAccessor object, see Best Practices for Getting and Setting Properties.

See Also

Reference

_PropertyAccessor Interface

_PropertyAccessor Members

Microsoft.Office.Interop.Outlook Namespace