Skip to main content

DateTimeConverter Members

Converts the TimeSpan values to DateTime and vice versa.

Constructors

Name Description
DateTimeConverter() Initializes a new instance of the DateTimeConverter class.

Methods

Name Description
ConvertToDateFormat(String) static Formats the string value to a DateTime formatted string.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from System.Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from System.Object.
GetHashCode() Serves as the default hash function. Inherited from System.Object.
GetType() Gets the Type of the current instance. Inherited from System.Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from System.Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from System.Object.
TimeFromTimeSpan(Nullable<TimeSpan>, DateTime) static Converts TimeSpan values with the specified reference date to a DateTime value.
TimeSpanFromTime(Nullable<DateTime>, TimeSpan) static Converts DateTime values with the specified reference date to a TimeSpan value.
ToString() Returns a string that represents the current object. Inherited from System.Object.
See Also