I tried getting week of the year through below code but it always returns "3", I even set the timezone to GMT but still returning the same value("3"
). Please help me out over here
DateFormat formatter = new SimpleDateFormat("dd-mm-yyyy");
Date date = formatter.parse("14-10-2014")
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
System.out.println(calendar.get(Calendar.WEEK_OF_YEAR));