DateWithZone StructureDateWithZone StructureDateWithZone Structure

Represents a Gregorian date. The corresponding XML Schema type is xs:date.

Syntax

Public NotInheritable  DateWithZone _
        Implements IEquatable(Of DateWithZone)
public sealed  DateWithZone : IEquatable<DateWithZone>
public:
value class DateWithZone sealed : IEquatable<DateWithZone>
 
The DateWithZoneDateWithZoneDateWithZone type exposes the following members.

Constructors

 ConstructorDescription
Public methodDateWithZone (long, int, int, TimeZone?)DateWithZone (Long, Integer, Integer, Nullable(Of TimeZone))DateWithZone (long, int, int, Nullable<TimeZone>) Initializes a new instance of the DateWithZoneDateWithZoneDateWithZone structure with the specified year, month, day and time zone components.
Public methodDateWithZone (long, TimeZone?)DateWithZone (Long, Nullable(Of TimeZone))DateWithZone (long, Nullable<TimeZone>) Initializes a new instance of the DateWithZoneDateWithZoneDateWithZone structure which is a specified number of days past the epoch (0001-01-01T00:00) in the specified time zone.

Top

Properties

 PropertyDescription
Public propertyDayDayDay Gets the day component of this DateWithZoneDateWithZoneDateWithZone.
Public propertyDayOfWeekDayOfWeekDayOfWeek Gets the day of the week.
Public propertyDayOfYearDayOfYearDayOfYear Gets the day of the year.
Public propertyDaysPastEpochDaysPastEpochDaysPastEpoch Returns the number of complete days past the epoch (0001-01-01T00:00:00).
Public propertyGDayGDayGDay Gets the day component of this DateWithZoneDateWithZoneDateWithZone represented as a GDayGDayGDay.
Public propertyGMonthGMonthGMonth Gets the month component of this DateWithZoneDateWithZoneDateWithZone represented as a GMonthGMonthGMonth.
Public propertyGMonthDayGMonthDayGMonthDay Gets the month and day components of this DateWithZoneDateWithZoneDateWithZone represented as a GMonthDayGMonthDayGMonthDay.
Public propertyGYearGYearGYear Gets the year component of this DateWithZoneDateWithZoneDateWithZone represented as a GYearGYearGYear.
Public propertyGYearMonthGYearMonthGYearMonth Gets the year and month components of this DateWithZoneDateWithZoneDateWithZone as a GYearMonthGYearMonthGYearMonth.
Public propertyMonthMonthMonth Returns the month component of this DateWithZoneDateWithZoneDateWithZone.
Public propertyTimeZoneTimeZoneTimeZone Gets the optional time zone component of this DateWithZoneDateWithZoneDateWithZone.
Public propertystaticTodayTodayToday Gets a DateWithZoneDateWithZoneDateWithZone object that is set to the current date on this computer expressed in the current time zone of this computer.
Public propertystaticUtcTodayUtcTodayUtcToday Gets a DateWithZoneDateWithZoneDateWithZone object that is set to the current date on this computer expressed in Coordinated Universal Time (UTC).
Public propertyWeekInMonthWeekInMonthWeekInMonth Gets the week in the month component of this DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.
Public propertyYearYearYear Gets the year component of this DateWithZoneDateWithZoneDateWithZone.

Top

Methods

 MethodDescription
Public methodstaticAdd (DateWithZone, DayTimeDuration)Add (DateWithZone, DayTimeDuration)Add (DateWithZone, DayTimeDuration) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateWithZoneDateWithZoneDateWithZone.
Public methodstaticAdd (DateWithZone, YearMonthDuration)Add (DateWithZone, YearMonthDuration)Add (DateWithZone, YearMonthDuration) Adds a YearMonthDurationYearMonthDurationYearMonthDuration to a DateWithZoneDateWithZoneDateWithZone.
Public methodstaticAdd (DayTimeDuration, DateWithZone)Add (DayTimeDuration, DateWithZone)Add (DayTimeDuration, DateWithZone) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateWithZoneDateWithZoneDateWithZone.
Public methodstaticAdd (YearMonthDuration, DateWithZone)Add (YearMonthDuration, DateWithZone)Add (YearMonthDuration, DateWithZone) Adds a YearMonthDurationYearMonthDurationYearMonthDuration to a DateWithZoneDateWithZoneDateWithZone.
Public methodAdjustToTimeZoneAdjustToTimeZoneAdjustToTimeZone Adjusts a DateWithZoneDateWithZoneDateWithZone structure to a specific time zone, or to no time zone.
Public methodstaticCompareCompareCompare Compares a DateWithZoneDateWithZoneDateWithZone with another DateWithZoneDateWithZoneDateWithZone.
Public methodstaticDaysInMonthDaysInMonthDaysInMonth Returns the number of days in the specified month of a specified year.
Public methodEquals (object)Equals (Object)Equals (object^) Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals)
Public methodEquals (DateWithZone)Equals (DateWithZone)Equals (DateWithZone) Indicates whether this instance is equal to another DateWithZoneDateWithZoneDateWithZone.
Public methodstaticEquals (DateWithZone, DateWithZone, TimeZone)Equals (DateWithZone, DateWithZone, TimeZone)Equals (DateWithZone, DateWithZone, TimeZone) Indicates whether a specified DateWithZoneDateWithZoneDateWithZone is equal to another specified DateWithZoneDateWithZoneDateWithZone given the supplied implicit time zone.
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetHashCodeGetHashCodeGetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCodeValueType.GetHashCodeValueType::GetHashCode)
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodstaticIsLeapYearIsLeapYearIsLeapYear Determines whether the specified year is a leap year.
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodstaticParseParseParse Converts a lexical representation of an xs:date to its DateWithZoneDateWithZoneDateWithZone equivalent.
Public methodstaticSubtract (DateWithZone, DateWithZone)Subtract (DateWithZone, DateWithZone)Subtract (DateWithZone, DateWithZone) Subtracts a DateWithZoneDateWithZoneDateWithZone from another DateWithZoneDateWithZoneDateWithZone.
Public methodstaticSubtract (DateWithZone, DateWithZone, TimeZone)Subtract (DateWithZone, DateWithZone, TimeZone)Subtract (DateWithZone, DateWithZone, TimeZone) Subtracts a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone value from a DateTimeWithZoneDateTimeWithZoneDateTimeWithZone value in the given time zone.
Public methodstaticSubtract (DateWithZone, DayTimeDuration)Subtract (DateWithZone, DayTimeDuration)Subtract (DateWithZone, DayTimeDuration) Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a DateWithZoneDateWithZoneDateWithZone.
Public methodstaticSubtract (DateWithZone, YearMonthDuration)Subtract (DateWithZone, YearMonthDuration)Subtract (DateWithZone, YearMonthDuration) Subtracts a YearMonthDurationYearMonthDurationYearMonthDuration from a DateWithZoneDateWithZoneDateWithZone
Public methodToString ()ToString ()ToString () Returns the canonical lexical representation of this DateWithZoneDateWithZoneDateWithZone. (Overrides ValueType.ToStringValueType.ToStringValueType::ToString)
Public methodToString (string, CultureInfo, TimeZoneInfo)ToString (String, CultureInfo, TimeZoneInfo)ToString (String^, CultureInfo^, TimeZoneInfo^) Converts the value of the current DateWithZoneDateWithZoneDateWithZone object to its equivalent string representation using the specified format and culture-specific format information.
Public methodstaticTryParseTryParseTryParse Converts a lexical representation of an xs:date to its DateWithZoneDateWithZoneDateWithZone equivalent. A return value indicates whether the conversion succeeded or failed.

Top

Operators

 OperatorDescription
Public operatorstaticAddition (DateWithZone, DayTimeDuration)Addition (DateWithZone, DayTimeDuration)Addition (DateWithZone, DayTimeDuration) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateWithZoneDateWithZoneDateWithZone
Public operatorstaticAddition (DateWithZone, YearMonthDuration)Addition (DateWithZone, YearMonthDuration)Addition (DateWithZone, YearMonthDuration) Adds a YearMonthDurationYearMonthDurationYearMonthDuration from a DateWithZoneDateWithZoneDateWithZone
Public operatorstaticAddition (DayTimeDuration, DateWithZone)Addition (DayTimeDuration, DateWithZone)Addition (DayTimeDuration, DateWithZone) Adds a DayTimeDurationDayTimeDurationDayTimeDuration to a DateWithZoneDateWithZoneDateWithZone
Public operatorstaticAddition (YearMonthDuration, DateWithZone)Addition (YearMonthDuration, DateWithZone)Addition (YearMonthDuration, DateWithZone) Adds a YearMonthDurationYearMonthDurationYearMonthDuration from a DateWithZoneDateWithZoneDateWithZone
Public operatorstaticEqualityEqualityEquality Indicates whether a specified DateWithZoneDateWithZoneDateWithZone is equal to another specified DateWithZoneDateWithZoneDateWithZone.
Public operatorstaticInequalityInequalityInequality Indicates whether a specified DateWithZoneDateWithZoneDateWithZone is not equal to another specified DateWithZoneDateWithZoneDateWithZone.
Public operatorstaticSubtraction (DateWithZone, DateWithZone)Subtraction (DateWithZone, DateWithZone)Subtraction (DateWithZone, DateWithZone) Subtracts a DateWithZoneDateWithZoneDateWithZone from a DateWithZoneDateWithZoneDateWithZone
Public operatorstaticSubtraction (DateWithZone, DayTimeDuration)Subtraction (DateWithZone, DayTimeDuration)Subtraction (DateWithZone, DayTimeDuration) Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a DateWithZoneDateWithZoneDateWithZone.
Public operatorstaticSubtraction (DateWithZone, YearMonthDuration)Subtraction (DateWithZone, YearMonthDuration)Subtraction (DateWithZone, YearMonthDuration) Subtracts a YearMonthDurationYearMonthDurationYearMonthDuration from a DateWithZoneDateWithZoneDateWithZone

Top

Fields

 FieldDescription
Public fieldstaticMaxValueMaxValueMaxValue Represents the maximum DateWithZoneDateWithZoneDateWithZone value. This field is read-only.
Public fieldstaticMinValueMinValueMinValue Represents the minimum DateWithZoneDateWithZoneDateWithZone value. This field is read-only.

Top