Dotnet-Project Framework documentation.

CalendarEX.NextDayDate Method 

Search the next date of the day specified.

public static DateTime NextDayDate(
   DateTime startDate,
   DayOfWeek day
);

Parameters

startDate
Date when to start the search.
day
The day to search.

Return Value

Current date if the startdate day is the day search.

See Also

CalendarEX Class | DotnetProject Namespace