Click or drag to resize

Date Class

The Date object is used to describe a date as Month, Day, and Year.
Inheritance Hierarchy
SystemObject
  PSI.SoxDate

Namespace:  PSI.Sox
Assembly:  PSI.Sox (in PSI.Sox.dll) Version: 2.1
Syntax
[SerializableAttribute]
[DataContractAttribute]
public class Date : ICloneable, IComparable<Date>, 
	IComparable, IFormattable, IEquatable<Date>

The Date type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDateAsString
Gets the date as string in YYYY-MM-DD format.
Public propertyDay
Gets or sets the Day.
Public propertyDayOfWeek
Gets the day of the week represented by the instance.
Public propertyDayOfYear
gets the day of year represented by the instance.
Public propertyMonth
Gets or sets the Month.
Public propertyYear
Gets or sets the Year.
Top
Methods
  NameDescription
Public methodAddDays
Adds Days
Public methodClone
Clones the Date object
Public methodCompareTo(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.
Public methodCompareTo(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.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Date)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parses a string into a Date.
Public methodToDateTime
Returns a datetime for SoxDate
Public methodToString
returns a string representation in 'yyyy-MM-dd' format
(Overrides ObjectToString.)
Public methodToString(String)
returns a string in specified format
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Top
Operators
See Also