# Date\_selec Feb and date problem

**URL:** <https://www.ruby-forum.com/t/date-selec-feb-and-date-problem/123213>\
**Category:** Rails\
**Created:** [December 14, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/date-selec-feb-and-date-problem/123213 "2007-12-14T23:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![backz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9f8e36/32.png) [@backz](https://www.ruby-forum.com/u/backz)\
**Post date:** [December 14, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/date-selec-feb-and-date-problem/123213/1 "2007-12-14T23:43:18Z")

</div>

Hi,

I am using the following for date of birth.

\<%= date\_select ‘attending\_ip’, ‘dob’, :order =\>  
[:month, :day, :year], :use\_month\_numbers =\> true, :include\_blank =\>  
true, :start\_year =\> 1950, :end\_year =\> Time.now.year %\>

However, this makes user to enter such a date 02/31/2000 which doesn’t  
exist. Date drop down menu always displays from 1 - 31. so, if I enter  
2/31 and check again, it displays 3/3.

How do I solve this problem?
