I need list of weeks with starting and ending dates by giving int year and int month,

Example Result,

Week1 = 7/1/2012 to 7/1/2012

Week2 = 7/2/2012 to 7/8/2012

Week3 = 7/9/2012 to 7/15/2012

Week4 = 7/16/2012 to 7/22/2012

Week5 = 7/23/2012 to 7/29/2012

Week6 = 7/30/2012 to 7/31/2012