Mono Class Library: Overview

System.DateTime: Property Members

The properties of System.DateTime are listed below. For a list of all members, see the DateTime Members list.

See Also: Inherited members from System.ValueType

Public Properties

[read-only]
DateDateTime. Gets the date component of the current instance.
[read-only]
Dayint. Gets the day of the month represented by the current instance.
[read-only]
DayOfWeekDayOfWeek. Gets the day of the week represented by the current instance.
[read-only]
DayOfYearint. Gets the day of the year represented by the current instance.
[read-only]
Hourint. Gets the hour represented by the current instance.
[read-only]
KindDateTimeKind. Documentation for this section has not yet been entered.
[read-only]
Millisecondint. Gets the milliseconds component of the date represented by the current instance.
[read-only]
Minuteint. Gets the minute component of the date represented by the current instance.
[read-only]
Monthint. Gets the month component of the date represented by the current instance.
[read-only]
static
NowDateTime. Gets a DateTime representing the current local date and time.
[read-only]
Secondint. Gets the seconds component of the date represented by the current instance.
[read-only]
Tickslong. Gets the number of 100-nanosecond ticks that represent the date and time of the current instance.
[read-only]
TimeOfDayTimeSpan. Gets the time of day of the current instance.
[read-only]
static
TodayDateTime. Gets the current date.
[read-only]
static
UtcNowDateTime. Gets the current time converted to coordinated universal time (UTC).
[read-only]
Yearint. Gets the year component of the date represented by the current instance.