Compares two instances of Date and returns an indication of their relative values.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
public static int Compare(
	Date d1,
	Date d2
)
Visual Basic (Declaration)
Public Shared Function Compare ( _
	d1 As Date, _
	d2 As Date _
) As Integer

Parameters

d1
Type: DlhSoft.Windows.Data..::.Date
The first Date instance.
d2
Type: DlhSoft.Windows.Data..::.Date
The second Date instance.

Return Value

A signed number indicating the relative values of d1 and d2: less than zero indicates that d1 is less than d2, zero indicates that d1 equals d2, greater than zero indicates that d1 is greater than d2.

See Also