Skip to content

Instantly share code, notes, and snippets.

@fadhlirahim
Forked from lxneng/gist:331737
Created February 5, 2013 10:43
Show Gist options
  • Save fadhlirahim/4713662 to your computer and use it in GitHub Desktop.
Save fadhlirahim/4713662 to your computer and use it in GitHub Desktop.
#controller
@start_date = Date.civil(params[:range][:"start_date(1i)"].to_i,params[:range][:"start_date(2i)"].to_i,params[:range][:"start_date(3i)"].to_i)
#view
<%= date_select('range', 'start_date', :order => [:month, :day, :year])%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment