Represents an instant in time, expressed as a date and time of day. This class cannot be inherited.
public sealed class DateTime: Object, IComparable
The following table lists the members exposed by the DateTime object. Click a tab on the left to choose the type of member you want to view.
Methods
Method Description Add Adds the specified time to the value of this instance. AddDays Adds days to the value of this instance. AddHours Adds hours to the value of this instance. AddMilliseconds Adds milliseconds to the value of this instance. AddMinutes Adds minutes to the value of this instance. AddMonths Adds months to the value of this instance. AddSeconds Adds seconds to the value of this instance. AddYears Adds years to the value of this instance. Compare Compares two instances of DateTime and returns an indication of their relative values. CompareTo Compares this instance to a specified object and returns an indication of their relative values. DateTime Overloaded. Initializes a new instance of DateTime. DaysInMonth Returns the number of days in the specified month of the specified year. Equals Overloaded. Compares two objects to determine if they are equal. GetHashCode Overriden. Returns the hash code for this instance. GetType Gets the Type of the current instance. (Inherited from Object) IsLeapYear Returns an indication whether the specified year is a leap year. ReferenceEquals Determines whether the specified Object instances are the same instance. (Inherited from Object) Substract Overloaded. Subtracts the specified time or duration from this instance. ToLocalTime Converts the current coordinated universal time (UTC) to local time. ToLongDateString Converts the value of this instance to its equivalent long date string representation. ToLongTimeString Converts the value of this instance to its equivalent long time string representation. ToShortDateString Converts the value of this instance to its equivalent short date string representation. ToShortTimeString Converts the value of this instance to its equivalent short time string representation. ToString Overriden. Converts the value of this instance to its equivalent string. ToUniversalTime Converts the current local time to coordinated universal time (UTC). Properties
Property Description Date Gets the date component of this instance. Day Gets the day of the month of this instance. DayOfWeek Gets the day of the week of this instance. DayOfYear Gets the day of the year of this instance. Hour Gets the hour component of this instance. Millisecond Gets the milliseconds component of this instance. Minute Gets the minute component of this instance. Month Gets the month component of this instance. Now Gets a DateTime that is the current local date and time on this computer. Second Gets the seconds component of the date represented by this instance. TicksDouble Gets the interval of time component of the date represented by this instance. TimeOfDay Gets the time of day for this instance. Today Gets the current date. UtcNow Gets a DateTime that is the current local date and time on this computer expressed as the coordinated universal time (UTC). Year Gets the year component of the date represented by this instance. Operators
Operator Description operator != Determines whether two specified instances of DateTime are not equal. operator + Adds a specified time interval to a specified date and time, yielding a new date and time. operator - Overloaded. Subtracts a specified DateTime or value from a specified DateTime. operator < Determines whether one specified DateTime is less than another specified DateTime. operator <= Determines whether one specified DateTime is less than or equal to another specified DateTime. operator == Determines whether two specified instances of DateTime are equal. operator > Determines whether one specified DateTime is greater than another specified DateTime. operator >= Determines whether one specified DateTime is greater than or equal to another specified DateTime. Fields
ObjectDateTime
Namespace System Flash Library corlib.scl Flash Library Version 2.0.0.2466 Silverlight Library System.Windows.Forms.dll
| © 2003-2007 NETiKA Technologies. All rights reserved. |