Hi
Iam trying to Conver a String(mm/dd/yyyy) to Date
Here is code
DateFormat myDateFormat = new SimpleDateFormat(strFormat
);
Date myDate = null;
try {
myDate = myDateFormat.parse(strDate
);
} catch (ParseException e) {
System.out.println("Invali
d Date Parser Exception ");
e.printStackTrace();
}
System.out.println("Finish
ed Date Function " + myDate.getDay());
My Problem is iam passing 4/6/2004
but return value month is coming as 2 how to get Day of the Month
Start Free Trial