Hi, I have a question here... can I retrieve the day of a week by jst specifying the exact date ? say for eg: I specify 02/02/03 and is there any method or function I can get the day of the week this date ?
No problem. Just take a look at the java.util.Calendar class and/or the java.text.SimpleDateFormat class. If you create a Calendar and call aCalendar.get(Calendar.DAY_OF_WEEK) you will receive a number representing the day of the week. If you want a string representation, use a SimpledateFormat.
Result: The date is: February 2, 2003 The day Of the week is: 1 (This is a Sunday)
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards