title: c# get start-date and last-date based on current date
body: <p>I am doing an activity monitor based on date which is similar to stackoverflow <code>Today,YesterDay,this week,Last week,this month,last Month</code>..... Based on current date how to get <code>start-date</code> and <code>end-date</code> for all these <code>Today,YesterDay,this week,Last week,this month,last Month</code> in c#?</p>