i have this string output 'Wed Apr 01 09:50:31 CEST 2015' can anyone tell me what pattern is that . i need it in order to use it in another function.
@Test
public void test() throws ParseException {
String input = "Wed Apr 01 09:50:31 CEST 2015";
String format = "DD MM hh:mm:ss YYYY"; // i have a wrong format
SimpleDateFormat df = new SimpleDateFormat(format);
Date date = df.parse(input);
Calendar cal = Calendar.getInstance();
cal.setTime(date);
int week = cal.get(Calendar.WEEK_OF_YEAR);
System.out.println(week);
}
any help to figure out the correct format of date pattern in my case.