Export (0) Print
Expand All

DateTime Members

.NET Micro Framework 3.0

The following tables list the members exposed by the DateTime type.

NameDescription
Public MethodDateTimeOverloaded. Initializes a new instance of the DateTime structure.

NameDescription
Public Field StaticMaxValueRepresents the largest possible value for a DateTime object. Note that this field is read-only.
Public Field StaticMinValueRepresents the smallest possible value for a DateTime object. Note that this field is read-only.

NameDescription
Public PropertyDate Gets the date component of current DateTime object.
Public PropertyDay Gets the day-of-the-month component of the current DateTime object.
Public PropertyDayOfWeek Gets the day-of-the-week component of the current DateTime object.
Public PropertyDayOfYear Gets the day-of-the-year component of the current DateTime object.
Public PropertyHour Gets the hours component of the current DateTime object.
Public PropertyKind Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public PropertyMillisecond Gets the milliseconds component of the current DateTime object.
Public PropertyMinute Gets the minutes component of the current DateTime object.
Public PropertyMonth Gets the month component of the current DateTime object.
Public Property StaticNowGets the system's current date and time, expressed in local time.
Public PropertySecondGets the seconds component of the current DateTime object.
Public PropertyTicks Gets the current number of ticks in the current DateTime object.
Public PropertyTimeOfDay Gets the time-of-day component of the current DateTime object.
Public Property StaticTodayGets the current date.
Public Property StaticUtcNowGets the system's current date and time, expressed in Coordinated Universal Time (UTC).
Public PropertyYear Gets the year component of the current DateTime object.

NameDescription
Public MethodAddAdds a specified time period to the current DateTime object, yielding a new DateTime object.
Public MethodAddDaysAdds a specified number of days to the current DateTime object.
Public MethodAddHours Adds a specified number of hours to the current DateTime object.
Public MethodAddMilliseconds Adds a specified number of milliseconds to the current DateTime object.
Public MethodAddMinutes Adds a specified number of minutes to the current DateTime object.
Public MethodAddSeconds Adds a specified number of seconds to the current DateTime object.
Public MethodAddTicks Adds a specified number of ticks to the current DateTime object.
Public Method StaticCompareCompares two date/time values in order to determine their relative value.
Public MethodCompareToCompares a specified date/time to this date/time instance in order to determine their relative value.
Public Method StaticDaysInMonthReturns the number of days in a specified month of a specified year.
Public MethodEqualsOverloaded. Determines whether two DateTime objects have identical values.
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetType (Inherited from Object.)
Public Method Staticoperator -Overloaded. Subtracts one DateTime object from another one, or subtracts a specified time period from a specified DateTime object.
Public Method Staticoperator !=Determines whether two specified DateTime objects are not equal.
Public Method Staticoperator +Adds a specified period of time to a specified DateTime object, yielding a new DateTime object.
Public Method Staticoperator <Determines whether one DateTime object is less than another one.
Public Method Staticoperator <=Determines whether one DateTime is less than or equal to another one.
Public Method Staticoperator ==Determines whether two specified DateTime objects have the same date/time value.
Public Method Staticoperator >Determines whether one DateTime object is greater than another one.
Public Method Staticoperator >=Determines whether one DateTime object is greater than or equal to another one.
Public MethodReferenceEquals (Inherited from Object.)
Public Method StaticSpecifyKind Creates a new DateTime object that represents the same time as the specified DateTime, but is designated in either local time, Coordinated Universal Time (UTC), or neither, as indicated by the specified DateTimeKind value.
Public MethodSubtractOverloaded. Subtracts either a time period or another DateTime object from the current DateTime object.
Public MethodToLocalTimeConverts the current value of the current DateTime object to local time.
Public MethodToStringOverloaded. Converts the value of the current DateTime object to its equivalent string representation.
Public MethodToUniversalTime Converts the value of the current DateTime object to Coordinated Universal Time (UTC).

Community Additions

ADD
Show:
© 2014 Microsoft