Click or drag to resize

Date Structure

Internal type that implements the VO Compatible DATE type
This type has many operators and implicit converters that normally are never directly called from user code. It holds year, month, day in 32 bits. For date calculations it uses the System.DateTime calculation logic. There are implicit converters between Date and DateTime.

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 STRUCTURE Date IMPLEMENTS IComparable, 
	IFormattable, IConvertible, IDate, IComparable<DATE>, IEquatable<DATE>
View Source

The Date type exposes the following members.

Constructors
  NameDescription
Public methodDate(DateTime)
Construct a date from a DateTime value.
Public methodDate(Int64)
Construct a date from a number of Ticks.
Public methodDate(String)
Construct a date from a string. This assumes the string is in current Date format
Public methodDate(IDate)
Construct a date from another IDate type.
Public methodDate(String, String)
Construct a date from a string using the specified Date Format.
Public methodDate(Int32, Int32, Int32)
Construct a date from year, month, day
Public methodDate(UInt32, UInt32, UInt32)
Construct a date from year, month, day
Top
Properties
  NameDescription
Public propertyDay
Day part of the date. A number between 0 an 31
Public propertyIsEmpty
Is the date empty (NULL_DATE)
Public propertyMonth
Month part of the date. A number between 0 an 12
Public propertyValue
Return DATE value as DateTime.
Public propertyYear
Year part of the date. A number between 0 and 9999
Top
Methods
  NameDescription
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)
Indicates whether this instance and a specified object are equal.
(Overrides Equals(Object).)
Public methodEquals(Date)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides GetHashCode.)
Public methodGetTypeCode
Returns the TypeCode for this instance.
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ToString.)
Public methodToString(IFormatProvider)
Converts the value of this instance to an equivalent String using the specified culture-specific formatting information.
Public methodToString(String)
Converts the value of the current DateTime object to its equivalent string representation using the specified format and the formatting conventions of the current culture.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Date, Double)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, Int32)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, Int64)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, TimeSpan)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, UInt32)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, UInt64)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberAddition(Date, Usual)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberDecrement
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberEquality
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Int32 to Date)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(UInt32 to Date)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(Date to UInt32)
This converter is used in code generated by the compiler when needed.
Public operatorStatic member(Date to Int32)
This converter is used in code generated by the compiler when needed.
Public operatorStatic memberGreaterThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberGreaterThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(DateTime to Date)
This operator is used in code generated by the compiler when needed.
Public operatorStatic member(Date to DateTime)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberIncrement
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberInequality
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThan
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberLessThanOrEqual
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Double)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Int32)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Int64)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, TimeSpan)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, UInt32)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, UInt64)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Date)
This operator is used in code generated by the compiler when needed.
Public operatorStatic memberSubtraction(Date, Usual)
This operator is used in code generated by the compiler when needed.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIConvertibleToBoolean
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToByte
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToChar
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDateTime
Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDecimal
Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToDouble
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt16
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt32
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToInt64
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSByte
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToSingle
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToType
Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt16
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt32
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
Explicit interface implementationPrivate methodIConvertibleToUInt64
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
Top
See Also