# Forms with date\_select: How to set/leave a date to NULL?

**URL:** <https://www.ruby-forum.com/t/forms-with-date-select-how-to-set-leave-a-date-to-null/162924>\
**Category:** Rails\
**Created:** [March 15, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/forms-with-date-select-how-to-set-leave-a-date-to-null/162924 "2009-03-15T20:46:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 15, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/forms-with-date-select-how-to-set-leave-a-date-to-null/162924/1 "2009-03-15T20:46:30Z")

</div>

Hi,

minor question:

If I create a form where some entries are of type date (i.e. use the  
form.date\_select to create the form field), it does not allow to enter  
a NULL date. Even if the user does not enter anything, it forces a  
NULL date to become today’s date.

Is there any (simple) way to give a date a NULL choice?

regards  
Hadmut
