_PropertyAccessor.LocalTimeToUTC(DateTime) Method

Definition

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

public:
 DateTime LocalTimeToUTC(DateTime Value);
public DateTime LocalTimeToUTC (DateTime Value);
Public Function LocalTimeToUTC (Value As DateTime) As DateTime

Parameters

Value
DateTime

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

Returns

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

Applies to