I think this is what you wanted for :
public DateTime GetFirstDate(DateTime thisDate)
{
CultureInfo cinfo = Thread.CurrentThread.CurrentCulture;
DayOfWeek currentfdayname = cinfo.DateTimeFormat.FirstDayOfWeek;
DayOfWeek currenttdayname = cinfo.Calendar.GetDayOfWeek(DateTime.Now);
int diff = currenttdayname - currentfdayname;
DateTime firstDate = thisDate.AddDays(-diff);
return firstDate;
}
I hope this would help you.:rose: