This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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!

Have you checked out Aspose?
subject: want to get day
It's not a secret anymore!