DateTimeValue.GetConvertedValue(TimeZoneInfo) 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 To UTC time if value is not utc and timeZoneInfo is utc.
Converts from UTC time if value is utc and timeZoneInfo is non utc.
else returns the value/>/>.
NOTE: if timeZoneInfo is null, Local time zone is used.
public DateTime GetConvertedValue(TimeZoneInfo timeZoneInfo);
member this.GetConvertedValue : TimeZoneInfo -> DateTime
Public Function GetConvertedValue (timeZoneInfo As TimeZoneInfo) As DateTime
Parameters
- timeZoneInfo
- TimeZoneInfo