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 :(

Check this website Real's How To, there is nice tutorial in Java section for you to find

Member Avatar for iamthwee

Surely the util.Calendar stuff should contain something relevant?

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()));
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.