I'm using the Form API to create a Date of Birth field with lists for month, day and year.
$form['dob'] = array(
'#type' => 'date_select',
'#title' => t('Date of birth'),
'#default_value' => '',
'#date_format' => 'm-d-Y',
'#date_label_position' => 'within',
'#date_year_range' => '-100:+0',
'#required' => TRUE,
);
Sine the default value is blank this outputs the following:
How can I alter the labels? Specifically I want to get rid of the '-' characters so it looks more like this