Subtracts a specified date and time from a specified date, yielding a time interval.

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

Syntax

C#
public static TimeSpan operator -(
	Date d1,
	DateTime d2
)
Visual Basic (Declaration)
Public Shared Operator - ( _
	d1 As Date, _
	d2 As DateTime _
) As TimeSpan

Parameters

d1
Type: DlhSoft.Windows.Data..::.Date
A Date.
d2
Type: System..::.DateTime
A DateTime.

Return Value

A TimeSpan that is the time interval between d1 and d2; that is, d1 minus d2.

See Also