File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes want to get day Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "want to get day " Watch "want to get day " New topic

want to get day

Aayush Patel

Joined: Apr 26, 2001
Posts: 21
I have an array of i want the day against of each date..means sunday,monday,tuesday.....
Matt DeLacey
Ranch Hand

Joined: Oct 12, 2000
Posts: 318
I've done this before but it's the hard way. You can get today's
date and today's day and then calculate from there. There is also an algorithm for calculating this, but I don't know it off the top of my head...which is why I did it the obscenely hard way.
With Respect,
Matt DeLacey
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Aayush,
To help you and Matt out here is the easy way!

I agree. Here's the link:
subject: want to get day
It's not a secret anymore!