TYPE

DateTimeOffset

Represents a date and time with a UTC offset; does not store a named zone.

Formal Syntax & Structure

csharp syntaxcsharp
new DateTimeOffset(year, month, day, hour, minute, second, offset)

Working Example

Example Snippetcsharp
var stamp = new System.DateTimeOffset(2026, 1, 5, 14, 0, 0, System.TimeSpan.Zero);
C# & .NET Reference