_PropertyAccessor.UTCToLocalTime(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 the DateTime value that is specified by Value
and expressed in Coordinated Universal Time (UTC) to a value in local time.
public:
DateTime UTCToLocalTime(DateTime Value);
public DateTime UTCToLocalTime (DateTime Value);
Public Function UTCToLocalTime (Value As DateTime) As DateTime
Parameters
- Value
- DateTime
The DateTime value to be converted from UTC to local time.
Returns
A DateTime value that represents Value
after being converted from UTC to local time.
Remarks
For more information on type conversion when using the PropertyAccessor object, see Best Practices for Getting and Setting Properties