Question: My website can only be accessed by authenticated users. How can I automatically make the author's name the user's name without giving users the option to input anything else in the name field?

Answer: 
Custom datepicker options are now supported (as of Date module version 7.x-2.6) by setting the necessary values with `#datepicker_options`. Alex's use case of a custom form element to display only future dates would look like this:

```
$form['date'] = array(
  '#prefix'=>t('When do you want to start the featured campaign?'),
  '#date_format' => 'Y-m-d',
  '#date_year_range' => '0:+1',
  '#type' => 'date_popup',
  '#weight'=>0,
  '#datepicker_options' => array('minDate' => 0),
);

```
Date use Jquery DatePicker:
<https://jqueryui.com/datepicker/#min-max>

Then, We must do that from javascript:

```
  $(function () {
      $("#myIdinputDatePicker").datepicker({ minDate: -0, maxDate: "+1M +10D" });
  });

```

That's it, leaving the Drupal World.