Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

want to get day  RSS feed

 
Aayush Patel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an array of dates...now i want the day against of each date..means sunday,monday,tuesday.....
 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Aayush,
To help you and Matt out here is the easy way!

Regards,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!