Click here to Skip to main content
15,793,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose my current week started on Tuesday and today date is 20 aug 2010 the I want the last week date i.e is of last week tuesday - monday

Awaiting for reply.

You should roll of your basic, entry level questions on the date-time class in to one, or perhaps learn to use google, or buy a book. The datetime class has a day of week property, that's all you need.
Share this answer
Did you even tried it out yourself? If you would had then you would had known how simple this was.

Just look at the DateTime class properties [^]here and you yourself will see what properties can get you that.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900