METHOD
DateTimeOffset.ToUniversalTime
Produces a representation of the same instant at zero UTC offset.
Formal Syntax & Structure
csharp syntaxcsharp
stamp.ToUniversalTime()Working Example
Example Snippetcsharp
var utc = new System.DateTimeOffset(2026, 1, 5, 14, 0, 0, System.TimeSpan.Zero).ToUniversalTime();