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
)
 

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.