RecurrenceNextInstance Method

This method is used to return the next recurring instances on or after the specified date/time based on the current settings.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public DateTime NextInstance(
	DateTime fromDate,
	bool onlyAfter
)

Parameters

fromDate  DateTime
The minimum date/time on or after which the instance should occur.
onlyAfter  Boolean
Specify true to only return a next instance if it occurs after the specified date/time. If false, it will allow an exact match on the specified date/time to be returned as well.

Return Value

DateTime
Returns a DateTime that represent the next instance found or DateTime.MinValue if there are no more instances.

See Also