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 :(
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 :(
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()));
this site has the mathematical explanation: http://www.geocities.com/peacecrusader888/finddate.htm
you can try implementing the function if none of the advices given above doesn't work.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.