ThisWeekFriday
Returns a DateTime representing the Friday of the current week.
Depends on System.Globalization.
Source
public static DateTime ThisWeekFriday(this DateTime dt)
{
var today = DateTime.Now;
return new GregorianCalendar().AddDays(today, -((int)today.DayOfWeek) + 5);
}
Example
var friday = DateTime.Now.ThisWeekFriday();