Greetings i have this Model below:
public class WeekOfYear
{
public int WeekNumber { get; set; }
public DateTime FirstDayOfWeek { get; set; }
public DateTime LastDayOfWeek { get; set; }
}
At the moment i am trying to create a list based on weeks of the year and i have to know which week am i and what is the first day and last day of the week are, I've researched a little bit but nothing came up, I know how to get the WeekNumber
but problem starts when i try to get the other properties "first/last days of the week", anyone has any clue? its appreciated.
Update
Let me make it more clear, lets say i know i am within the first week of the year, What i want to know is the first day of the week is for example : Monday 2017-1-1 and the last day is Sunday 2017-1-7.