DateTimeOffset Constructor

DateTimeOffset Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the DateTimeOffset structure.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method DateTimeOffset(DateTime) Initializes a new instance of the DateTimeOffset structure using the specified DateTime value.
Public method DateTimeOffset(DateTime, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified DateTime value and offset.
Public method DateTimeOffset(Int64, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified number of ticks and offset.
Public method DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, and offset.
Public method DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset.
Public method DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified year, month, day, hour, minute, second, millisecond, and offset of a specified calendar.
Top

Show:
© 2017 Microsoft