Date Class |
Namespace: PSI.Sox
[SerializableAttribute] [DataContractAttribute] public class Date : ICloneable, IComparable<Date>, IComparable, IFormattable, IEquatable<Date>
The Date type exposes the following members.
Name | Description | |
---|---|---|
Date |
Constructor
| |
Date(DateTime) |
Date Time Constructor
| |
Date(Int32, Int32, Int32) |
Constructor
|
Name | Description | |
---|---|---|
DateAsString |
Gets the date as string in YYYY-MM-DD format.
| |
Day |
Gets or sets the Day.
| |
DayOfWeek |
Gets the day of the week represented by the instance.
| |
DayOfYear |
gets the day of year represented by the instance.
| |
Month |
Gets or sets the Month.
| |
Year |
Gets or sets the Year.
|
Name | Description | |
---|---|---|
AddDays |
Adds Days
| |
Clone |
Clones the Date object
| |
CompareTo(Object) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
CompareTo(Date) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
Equals(Date) | Indicates whether the current object is equal to another object of the same type. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse |
Parses a string into a Date.
| |
ToDateTime |
Returns a datetime for SoxDate
| |
ToString |
returns a string representation in 'yyyy-MM-dd' format
(Overrides ObjectToString.) | |
ToString(String) |
returns a string in specified format
| |
ToString(String, IFormatProvider) | Formats the value of the current instance using the specified format. |
Name | Description | |
---|---|---|
Equality | ||
(Date to DateTime) | ||
GreaterThan | ||
GreaterThanOrEqual | ||
Inequality | ||
LessThan | ||
LessThanOrEqual |