# Specifying m/d/y order in datetime\_select

**URL:** <https://www.ruby-forum.com/t/specifying-m-d-y-order-in-datetime-select/72058>\
**Category:** Rails\
**Created:** [February 22, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/specifying-m-d-y-order-in-datetime-select/72058 "2006-02-22T22:38:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave\_davidson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c77e96/32.png) [@dave\_davidson](https://www.ruby-forum.com/u/dave_davidson)\
**Post date:** [February 22, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/specifying-m-d-y-order-in-datetime-select/72058/1 "2006-02-22T22:38:52Z")

</div>

the date\_select form helper has a neat little feature which lets you  
specify  
the order of the month/day/year that is displayed on the form via the  
:order  
parameter. i.e.

\<%= date\_select ‘blah’, ‘somedate’, :order=\>[:month, :day, :year] %\>

however, i don’t see a similar option for datetime\_select. passing  
an :order parameter is happily ignored by the method. i would assume  
this is  
the case because either :order needs more parameters (:hour, :minute  
don’t  
work) or it is not parsed in a datetime\_select context.

so, is this ordering available in datetime\_select?

thanks!

---

<div class="post-metadata">

**Author:** ![dave\_davidson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c77e96/32.png) [@dave\_davidson](https://www.ruby-forum.com/u/dave_davidson)\
**Post date:** [February 23, 2006, 3:47am UTC](https://www.ruby-forum.com/t/specifying-m-d-y-order-in-datetime-select/72058/2 "2006-02-23T03:47:42Z")

</div>

That’s currently a known issue of the DateHelper.rb library. You can  
find a  
patch for this and many other issues where. Both EdgeRails and 1.0 diffs  
are  
available.

[http://dev.rubyonrails.org/ticket/3811](http://dev.rubyonrails.org/ticket/3811)

Bob S.  
[http://www.railtie.net/](http://www.railtie.net/)
