RandomExtended..::..NextDateTime Method (DateTime, TimeSpan)

Returns a random date/time that is within the indicated time span.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public DateTime NextDateTime(
	DateTime minValue,
	TimeSpan maxSpan
)
Public Function NextDateTime ( _
	minValue As DateTime, _
	maxSpan As TimeSpan _
) As DateTime

Parameters

minValue
Type: DateTime
The inclusive minimum value.
maxSpan
Type: TimeSpan
The exclusive maximum span.

Return Value