Click or drag to resize

CommonDateTimeFormatDateTime Method (DateTime, String, 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
Syntax
C#
public static string FormatDateTime(
	DateTime dateTime,
	string format,
	bool addTimeZoneInfo = false
)

Parameters

dateTime
Type: SystemDateTime
A UTC datetime.
format
Type: SystemString
The output format
addTimeZoneInfo (Optional)
Type: SystemBoolean

Return Value

Type: String
Formattet string
See Also