| CommonDateTimeFormatDateTime Method (DateTime, String, Int32, Boolean) |
Formats a UTC datetime to string in local representation
Namespace:
Omada.OE.Model
Assembly:
Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntaxpublic static string FormatDateTime(
DateTime dateTime,
string format,
out int timeOfDay,
bool addTimeZoneInfo = false
)
Parameters
- dateTime
- Type: SystemDateTime
A UTC datetime. - format
- Type: SystemString
The output format - timeOfDay
- Type: SystemInt32
Time part of datetime datetime - addTimeZoneInfo (Optional)
- Type: SystemBoolean
Return Value
Type:
StringFormattet string
See Also