Hi ,
can soembody help in finding the month in String(e.g Jan , Feb) in Java when the input date format supplied in
"DD/MM/YYYY" format . I am using the SimpleDateFormat like
the code below . But i am able to get only the month on Integer . Any help is appreceated .
SimpleDateFormat df = new SimpleDateFormat("dd/Mon/yyyy"
;
Calendar cal = Calendar.getInstance();
try
{
java.util.Date date = df.parse(businessdate);
cal.setTime(date);
}
catch(ParseException ex)
{
}
int month = cal.get(Calendar.MONTH);
can soembody help in finding the month in String(e.g Jan , Feb) in Java when the input date format supplied in
"DD/MM/YYYY" format . I am using the SimpleDateFormat like
the code below . But i am able to get only the month on Integer . Any help is appreceated .
SimpleDateFormat df = new SimpleDateFormat("dd/Mon/yyyy"
Calendar cal = Calendar.getInstance();
try
{
java.util.Date date = df.parse(businessdate);
cal.setTime(date);
}
catch(ParseException ex)
{
}
int month = cal.get(Calendar.MONTH);