SqlDateTime
Represents the date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds to be stored in or retrieved from a database. The SqlDateTime structure has a different underlying data structure from its corresponding .NET Framework type, DateTime, which can represent any time between 12:00:00 AM 1/1/0001 and 11:59:59 PM 12/31/9999, to the accuracy of 100 nanoseconds. SqlDateTime actually stores the relative difference to 00:00:00 AM 1/1/1900. Therefore, a conversion from "00:00:00 AM 1/1/1900" to an integer will return 0.
Represents the maximum valid date value for a SqlDateTime structure.
Represents the minimum valid date value for a SqlDateTime structure.
Represents a DBNull that can be assigned to this instance of the SqlDateTime structure.
A constant whose value is the number of ticks equivalent to one hour.
A constant whose value is the number of ticks equivalent to one minute.
A constant whose value is the number of ticks equivalent to one second.
Gets the number of ticks representing the date of this SqlDateTime structure.
Indicates whether this SqlDateTime structure is null.
Gets the number of ticks representing the time of this SqlDateTime structure.
Gets the value of the SqlDateTime structure. This property is read-only.
Initializes a new instance of the SqlDateTime structure using the specified DateTime value.
Initializes a new instance of the SqlDateTime structure using the supplied parameters.
Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day.
Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure.
public SqlDateTime(int year, int month, int day, int hour, int minute, int second, double millisecond)
Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure.
Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and billisecond of the new structure.
Adds a SqlDateTime to the specified TimeSpan.
Performs a logical comparison of two SqlDateTime structures to determine whether they are equal.
Compares two instances of SqlDateTime to determine whether the first is greater than the second.
Compares two instances of SqlDateTime to determine whether the first is greater than or equal to the second.
Compares two instances of SqlDateTime to determine whether the first is less than the second.
Compares two instances of SqlDateTime to determine whether the first is less than or equal to the second.
Performs a logical comparison of two instances of SqlDateTime to determine whether they are not equal.
Adds the period of time indicated by the supplied TimeSpan parameter, tt, to the supplied SqlDateTime structure.
Performs a logical comparison of two SqlDateTime structures to determine whether they are equal.
Converts the SqlDateTime structure to a DateTime structure.
Converts the SqlString parameter to a SqlDateTime.
Compares two instances of SqlDateTime to determine whether the first is greater than the second.
Compares two instances of SqlDateTime to determine whether the first is greater than or equal to the second.
Converts a DateTime structure to a SqlDateTime structure.
Performs a logical comparison of two instances of SqlDateTime to determine whether they are not equal.
Compares two instances of SqlDateTime to determine whether the first is less than the second.
Compares two instances of SqlDateTime to determine whether the first is less than or equal to the second.
Converts the specified String representation of a date and time to its SqlDateTime equivalent.
Subtracts the specified Timespan from this SqlDateTime instance.
Compares this SqlDateTime structure to the supplied SqlDateTime structure and returns an indication of their relative values.
Compares this SqlDateTime structure to the supplied Object and returns an indication of their relative values.
Converts this SqlDateTime structure to SqlString.