_PropertyAccessor.LocalTimeToUTC(DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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