| CommonDateTimeGetLocalDateTime Method (DateTime, Int32) |
Converts a utc datetime to a datetime in a specific timezone.
Be carefull 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,
int timeZoneCode
)
Parameters
- utcDateTime
- Type: SystemDateTime
A UTC datetime.
- timeZoneCode
- Type: SystemInt32
A timezone code from tblTimeZone.
Return Value
Type:
DateTime
A DateTime in the specified timezone.
See Also