Click or drag to resize

CommonDateTimeGetUtcDateTime Method (DateTime, TimeZoneInfo)

Be carefull with this routine, it returns a UTC DateTime from a local DateTime which is not legal by convention.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static DateTime GetUtcDateTime(
	DateTime localDateTime,
	TimeZoneInfo timeZone
)

Parameters

localDateTime
Type: SystemDateTime
A local datetime.
timeZone
Type: SystemTimeZoneInfo
The timezone which localDateTime is in.

Return Value

Type: DateTime
Utc DateTime.
See Also