In Net Framework 4.x I can get the start of week by:
dateStart = DateTime.Today.AddDays(-1);
weekStart = dateStart.StartOfWeek(DayOfWeek.Monday);
But in Net Core the StartOfWeek function doesn't exist. Any idea how I can achieve this in Net Core 2?
Thanks