# Looking for a day of the week Algorithm

Page 1 of 1

## 1 Replies - 3140 Views - Last Post: 09 June 2005 - 09:52 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=11357&amp;s=e5425b53950ada4e2651f1524590220e&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 tommybeeasy

Reputation: 0
• Posts: 28
• Joined: 31-January 05

# Looking for a day of the week Algorithm

Posted 09 June 2005 - 09:50 AM

I'm using Java, but any basic algorithm will do. I'm using an object Date with three private members, all integers, two-digit month, two-digit day, and a four-digit year[mm/dd/yyyy].
Is This A Good Question/Topic? 0

## Replies To: Looking for a day of the week Algorithm

### #2 Nova Dragoon

• The Innocent Shall Suffer, Big Time

Reputation: 36
• Posts: 6,169
• Joined: 16-August 01

## Re: Looking for a day of the week Algorithm

Posted 09 June 2005 - 09:52 AM

Surely in java there is a function is some library to turn a date into the day of the week.

This may help:
Calendar Class

Page 1 of 1

 .related ul{list-style-type:circle;font-size:12px;font-weight:bold;}.related li{margin-bottom:5px;background-position:left 7px!important;margin-left:-35px;}.related h2{font-size:18px;font-weight:bold;}.related a{color:blue;}