Dotnet-Project Framework documentation.

CalendarEX.PrevtDayDate Method 

Search the previous date of the day specified.

public static DateTime PrevtDayDate(
   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