DateWithZone.Compare MethodDateWithZone.Compare MethodDateWithZone::Compare Method
Syntax
Public Shared Function Compare( _ date1 As DateWithZone, _ date2 As DateWithZone, _ implicitTimeZone As TimeZone _ ) As Integer
public static int Compare( DateWithZone date1, DateWithZone date2, TimeZone implicitTimeZone )
public: static int Compare( DateWithZone date1, DateWithZone date2, TimeZone implicitTimeZone )
Parameters
- date1
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The first DateWithZoneDateWithZoneDateWithZone to compare.
- date2
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The second DateWithZoneDateWithZoneDateWithZone to compare.
- implicitTimeZone
Type: XmlPrime.TimeZoneXmlPrime.TimeZoneXmlPrime::TimeZone
The time zone to use if either dateTime DateWithZoneDateWithZoneDateWithZone not have a time zone.
Return Value
Type: System.Int32System.Int32System::Int32
A signed number that indicates the relative order of date1 and date2. The return value has the following meanings.
- Less than zero indicates that date1 is less than date2.
- Zero indicates that date1 is equal to date2.
- Greater than zero indicates that date1 is greater than date2.