Posted By:
paolo_cordova
Posted On:
Saturday, March 15, 2003 09:53 AM
You can try this if your date variable name is "date":
java.sql.Date date = new java.sql.Date(); //example
Calendar cal = new GregorianCalendar();
cal.setTime(date);
int day = cal.get(cal.DAY_OF_MONTH);
explore other options too. just view javaDoc for Calendar.