Hello fellow forum members!!!
I am using Calendar.WEEK_OF_YEAR to return to me an integer of 1-53, my week is set to start on Monday's. So the first week of 2011, was December 27th, 2010 - January 2nd, 2011.
I need some help writing a function, or using built in functions to return to me the first day of Week 1.
String x = getFirstDay(1,2011);
String getFirstDay(int weeknumber, int year )
{
//some helpful code here! I'm lost!
returns "12-27-2011";
}
Thank you for any help!!!
Tim
I am using Calendar.WEEK_OF_YEAR to return to me an integer of 1-53, my week is set to start on Monday's. So the first week of 2011, was December 27th, 2010 - January 2nd, 2011.
I need some help writing a function, or using built in functions to return to me the first day of Week 1.
String x = getFirstDay(1,2011);
String getFirstDay(int weeknumber, int year )
{
//some helpful code here! I'm lost!
returns "12-27-2011";
}
Thank you for any help!!!
Tim