install the API docs.
Look up DateFormat, SimpleDateFormat, java.util.Date, and Calendar.
Using those you can do what you want quite easily.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
nah. Plug the date into a Calendar and get the correct field out of it...
Something like
Calendar calendar = new GregorianCalendar();
calendar.setTime(birthdate);
int dayOfBirth = calendar.get(Calendar.DAY_OF_WEEK);
The biggest mistake many beginners in Java (or most languages) seem to make is to not study the standard library.
It contains a TON of very handy utility classes that can really make your life easy.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337