0

hi ,

please , i have problem and i need help .........................


in calendar i want to get name of day from it how ?

if user select 21/9/2007 i want to get name of day "friday" to use it in anther funcation :(

5
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by orko
0

Surely the util.Calendar stuff should contain something relevant?

Yea, a combo of Calendar and DateFormat, though not very intuitive unfortunately:

Calendar now = Calendar.getInstance();
         System.out.println(new SimpleDateFormat("EEEE").format(now.getTime()));
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.