I want to get previous week dates (Monday and Sunday).
Sample. today is 2/16/2015 (or any day in that same week), Start_date should be 2/09/2015 and End_date should be 2/15/2015.
Is this correct way?
Dim curerntDate As DateTime = DateTime.Now
Dim delta As Integer = DayOfWeek.Monday - curerntDate.DayOfWeek
Dim monday As DateTime = curerntDate.AddDays(delta)
ASPxDateEdit_start_date.[Date] = monday.AddDays(-7)
ASPxDateEdit_end_date.[Date] = monday.AddDays(-1)