# Problems with date field

**URL:** <https://www.ruby-forum.com/t/problems-with-date-field/125858>\
**Category:** Rails\
**Created:** [January 12, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/problems-with-date-field/125858 "2008-01-12T23:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luizbiagi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@luizbiagi](https://www.ruby-forum.com/u/luizbiagi)\
**Post date:** [January 12, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/problems-with-date-field/125858/1 "2008-01-12T23:26:00Z")

</div>

Hi, I’m creating a date type field to put birthdate, but the years on  
this field only go to 2003, what should I do??

---

<div class="post-metadata">

**Author:** ![luizbiagi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@luizbiagi](https://www.ruby-forum.com/u/luizbiagi)\
**Post date:** [January 13, 2008, 2:15am UTC](https://www.ruby-forum.com/t/problems-with-date-field/125858/2 "2008-01-13T02:15:34Z")

</div>

On Jan 12, 2008, at 4:24 PM, luizbiagi wrote:

> Hi, I’m creating a date type field to put birthdate, but the years on  
> this field only go to 2003, what should I do??

It’s not clear what you’re asking. Are you talking about date\_select  
on an input form?

If so, you can do something like:  
\<%= date\_select ‘person’, ‘birthdate’, {:start\_year =\> 1920, :end\_year  
=\> 2008} %\>

---

<div class="post-metadata">

**Author:** ![luizbiagi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc348/32.png) [@luizbiagi](https://www.ruby-forum.com/u/luizbiagi)\
**Post date:** [January 13, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/problems-with-date-field/125858/3 "2008-01-13T15:21:24Z")

</div>

tnx man, that’s right just withou the {} tnx again
