# Select\_date question

**URL:** <https://www.ruby-forum.com/t/select-date-question/158247>\
**Category:** Rails\
**Created:** [January 21, 2009, 2:04am UTC](https://www.ruby-forum.com/t/select-date-question/158247 "2009-01-21T02:04:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yudora111](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/91b2a8/32.png) [@yudora111](https://www.ruby-forum.com/u/yudora111)\
**Post date:** [January 21, 2009, 2:04am UTC](https://www.ruby-forum.com/t/select-date-question/158247/1 "2009-01-21T02:04:49Z")

</div>

Hi all,

I have problem using select\_date. I put it in a form and submit the  
form. When the page is loaded, user’s selection of the date disappear.

What I want to do is very easy. I want to get the start date and end  
date from user ,run the appropriate query and then show the result.  
Why does this happen?

my code is like:

 Start Date: \<%= select\_date Date.today%\>   
 End Date: \<%= select\_date Date.today %\>   

\<%= submit\_tag 'Submit',:style=\>"height:24px; font-size:12px" %\>
  

Thanks in advance
