Include date module in custom module
Assuming you have the date popup module installed and enabled:

$form['starting_date'] = array(
  '#type' =&gt; 'date_popup',
  '#title' =&gt; 'Starting date',
  '#date_format' =&gt; 'd/m/Y',
  '#default_value' =&gt; date('Y-m-d'),
);