Export (0) Print
Expand All

DateTimeOffset Properties

The DateTimeOffset type exposes the following members.

  Name Description
Public property Date Gets a DateTime value that represents the date component of the current DateTimeOffset object.
Public property DateTime Gets a DateTime value that represents the date and time of the current DateTimeOffset object.
Public property Day Gets the day of the month represented by the current DateTimeOffset object.
Public property DayOfWeek Gets the day of the week represented by the current DateTimeOffset object.
Public property DayOfYear Gets the day of the year represented by the current DateTimeOffset object.
Public property Hour Gets the hour component of the time represented by the current DateTimeOffset object.
Public property LocalDateTime Gets a DateTime value that represents the local date and time of the current DateTimeOffset object.
Public property Millisecond Gets the millisecond component of the time represented by the current DateTimeOffset object.
Public property Minute Gets the minute component of the time represented by the current DateTimeOffset object.
Public property Month Gets the month component of the date represented by the current DateTimeOffset object.
Public property Static member Now Gets a DateTimeOffset object that is set to the current date and time on the current computer, with the offset set to the local time's offset from Coordinated Universal Time (UTC).
Public property Offset Gets the time's offset from Coordinated Universal Time (UTC).
Public property Second Gets the second component of the clock time represented by the current DateTimeOffset object.
Public property Ticks Gets the number of ticks that represents the date and time of the current DateTimeOffset object in clock time.
Public property TimeOfDay Gets the time of day for the current DateTimeOffset object.
Public property UtcDateTime Gets a DateTime value that represents the Coordinated Universal Time (UTC) date and time of the current DateTimeOffset object.
Public property Static member UtcNow Gets a DateTimeOffset object whose date and time are set to the current Coordinated Universal Time (UTC) date and time and whose offset is TimeSpan.Zero.
Public property UtcTicks Gets the number of ticks that represents the date and time of the current DateTimeOffset object in Coordinated Universal Time (UTC).
Public property Year Gets the year component of the date represented by the current DateTimeOffset object.
Top
Show:
© 2014 Microsoft