3.5
在做申请时。 my:discard_day和month不工作它仍然显示为:2013-01-01。
在我的db中使用“date”数据类型
<%= v.date_select :year, :discard_day => true, :discard_month => true, :order => [:year], :start_year => 2000, :end_year => Time.now.year, :prompt => {:year => "Select year"} %>
答案 0 :(得分:1)
select_year(Date.today, :start_year => Time.now.year, :end_year => Time.now.year - 95, :field_name => 'grad_year')
我希望这有效