Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DateTimeOffset Constructor

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.