Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • The problem is you're using current date, not "monday" or whatever as you start point. so on thursday it would run between 6 days ago and yesterday.. Commented Sep 19, 2012 at 11:44
  • I want that if I start from whatever date it should always display last week starting from monday to sunday. Commented Sep 19, 2012 at 11:47
  • Exacrtly you havent taken into account that today is not Monday. Commented Sep 19, 2012 at 11:48
  • @BugFinder This sql return data with starting from sunday to monday. but I want monday to sunday. if I use +5 it work for only if current date is sunday, but when I change date its not work. Commented Sep 19, 2012 at 11:54