Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails - datetime_select - change order of time and date

I use datetime_select in my application and i want to use such order of time and date:

HH MM - DD MM YYYY 

But i can't get how to do that. :order option allow only array that containing :day, :month and :year. Is there any solution to solve that?

like image 265
ExiRe Avatar asked Dec 07 '25 01:12

ExiRe


1 Answers

:order => [:hour, :minute, :day, :month, :year].

That should do it.

like image 107
Josiah Palmer Avatar answered Dec 08 '25 14:12

Josiah Palmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!