# Day of given week

**URL:** <https://www.ruby-forum.com/t/day-of-given-week/114633>\
**Category:** Rails\
**Created:** [September 17, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/day-of-given-week/114633 "2007-09-17T13:23:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfingerh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f14d63/32.png) [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Post date:** [September 17, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/day-of-given-week/114633/1 "2007-09-17T13:23:20Z")

</div>

Hi,

I need to get the tuesday for any given week of the year.  
For example, for the week 23 of the year, I have to get the day-month  
for tha tuesday of that week.

Thanks

Christian

---

<div class="post-metadata">

**Author:** ![cfingerh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f14d63/32.png) [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Post date:** [September 17, 2007, 4:08pm UTC](https://www.ruby-forum.com/t/day-of-given-week/114633/2 "2007-09-17T16:08:32Z")

</div>

Everything you need to build that method can be found in the Time class  
of ruby:  
[http://www.ruby-doc.org/core/classes/Time.html](http://www.ruby-doc.org/core/classes/Time.html)

cfingerh wrote:

> >

–  
Sincerely,

William P.
