Is there a way to limit datetime_select in rails so that it only shows certain hours, e.g. so that the only options are 5pm-10pm? currently only have this:`
<%= f.label :time %><br>
<%= f.datetime_select :time, :minute_step => 30 %>`
Is there a way to limit datetime_select in rails so that it only shows certain hours, e.g. so that the only options are 5pm-10pm? currently only have this:`
<%= f.label :time %><br>
<%= f.datetime_select :time, :minute_step => 30 %>`
Copyright © 2021 Jogjafile Inc.
This will give you an hour range between 5pm - 10pm