EssentialsDateTime.ToUniversalTime method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

ToUniversalTime()

Converts the value of the internal DateTime object to Coordinated Universal Time (UTC).

public EssentialsDateTime ToUniversalTime()

Returns

An object whose System.DateTime.Kind property is System.DateTimeKind.Utc, and whose value is the UTC equivalent to the value of the internal DateTime object, or System.DateTime.MaxValue if the converted value is too large to be represented by a DateTime object, or System.DateTime.MinValue if the converted value is too small to be represented by a DateTime object.