Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

  Name Description
Public method Supported by Portable Class Library DateTimeOffset(DateTime) Initializes a new instance of the DateTimeOffset structure using the specified DateTime value.
Public method Supported by Portable Class Library DateTimeOffset(DateTime, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified DateTime value and offset.
Public method Supported by Portable Class Library DateTimeOffset(Int64, TimeSpan) Initializes a new instance of the DateTimeOffset structure using the specified number of ticks and offset.
Public method Supported by Portable Class Library 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 Supported by Portable Class Library 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:
© 2015 Microsoft