Returns the number of days from date1 to date2.

Namespace: Imsl.Finance
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
int DaysBetween(
	DateTime date1,
	DateTime date2
)
Visual Basic (Declaration)
Function DaysBetween ( _
	date1 As DateTime, _
	date2 As DateTime _
) As Integer
Visual C++
int DaysBetween(
	DateTime date1, 
	DateTime date2
)

Parameters

date1
Type: System..::.DateTime
A DateTime object containing the initial date.
date2
Type: System..::.DateTime
A DateTime object containing the final date.

Return Value

A int which specifies the number of days from date1 to date2.

See Also