The properties of System.DateTimeOffset are listed below. For a list of all members, see the DateTimeOffset Members list.
See Also: Inherited members from System.ValueType
[read-only] | Date | DateTime.
Gets a DateTime value that represents the date component of the current DateTimeOffset object. |
[read-only] | DateTime | DateTime.
Gets a DateTime value that represents the date and time of the current DateTimeOffset object. |
[read-only] | Day | int.
Gets the day of the month represented by the current DateTimeOffset object. |
[read-only] | DayOfWeek | DayOfWeek.
Gets the day of the week represented by the current DateTimeOffset object. |
[read-only] | DayOfYear | int.
Gets the day of the year represented by the current DateTimeOffset object. |
[read-only] | Hour | int.
Gets the hour component of the time represented by the current DateTimeOffset object. |
[read-only] | LocalDateTime | DateTime.
Gets a DateTime value that represents the local date and time of the current DateTimeOffset object. |
[read-only] | Millisecond | int.
Gets the millisecond component of the time represented by the current DateTimeOffset object. |
[read-only] | Minute | int.
Gets the minute component of the time represented by the current DateTimeOffset object. |
[read-only] | Month | int.
Gets the month component of the date represented by the current DateTimeOffset object. |
[read-only] static | Now | DateTimeOffset.
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). |
[read-only] | Offset | TimeSpan.
Gets the time's offset from Coordinated Universal Time (UTC). |
[read-only] | Second | int.
Gets the second component of the clock time represented by the current DateTimeOffset object. |
[read-only] | Ticks | long.
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in clock time. |
[read-only] | TimeOfDay | TimeSpan.
Gets the time of day for the current DateTimeOffset object. |
[read-only] | UtcDateTime | DateTime.
Gets a DateTime value that represents the Coordinated Universal Time (UTC) date and time of the current DateTimeOffset object. |
[read-only] static | UtcNow | DateTimeOffset.
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. |
[read-only] | UtcTicks | long.
Gets the number of ticks that represents the date and time of the current DateTimeOffset object in Coordinated Universal Time (UTC). |
[read-only] | Year | int.
Gets the year component of the date represented by the current DateTimeOffset object. |