Can anybody help?
public void dateCalender() throws ParseException{
System.out.println(new SimpleDateFormat(\"MM/dd/yyyy\", Locale.ENGLISH).parse(\"120/1
You are using the format MM/dd/yyyy .So its taking Two positions
U try this way:
System.out.println(new SimpleDateFormat("MMM/dd/yyyy", Locale.ENGLISH).parse("Jan/12/2013").toString());
Here not throws unparsable exception but am not shoore about that is working or not
I think this will be wrong way every time using only MM/dd/yyyy format as "1/12/2013"