# Datetime\_select custom input fields

**URL:** <https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134757>\
**Category:** Rails\
**Created:** [April 14, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134757 "2008-04-14T21:27:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Urban](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@Phil\_Urban](https://www.ruby-forum.com/u/Phil_Urban)\
**Post date:** [April 14, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134757/1 "2008-04-14T21:27:34Z")

</div>

by default datetime\_select allows the user to input any date and time  
they want.

Is there a way it can only allow a user to select an hour between 8AM  
and 6PM and only allow them to choose the top of the hour (:00) and  
the half hour (:30) for the minute?
