| CommonDateTimeGetLocalDateTime Method (DateTime, TimeZoneInfo) |
Converts a utc datetime to a datetime in a specific timezone.
Be careful with this routine as it returns a DateTime in non-utc time!
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static DateTime GetLocalDateTime(
DateTime utcDateTime,
TimeZoneInfo timeZone
)
Parameters
- utcDateTime
- Type: SystemDateTime
A UTC datetime.
- timeZone
- Type: SystemTimeZoneInfo
The timezone which we want the utcDateTime converted to.
Return Value
Type:
DateTime
A DateTime in the specified timezone.
See Also