Now that convenient methods such as Date.getDay(), Date.getMonth(), and Date.getYear() are inconveniently deprecated, here’s the undeprecated way to get the day, month and year from a date object.
GregorianCalendar cal = new GregorianCalendar();
int day = cal.get(Calendar.DAY_OF_WEEK);
int month = cal.get(Calendar.MONTH);
int year = cal.get(Calendar.YEAR);
Note that the months are zero-based (January is 0).