I'm using the Form API Date controls for my form, and I am wondering if there is a way to zero pad the month and day values in the HTML select elements for values less than 10 at declaration time. I am using the following render array declarations in the page callback function.
$form = array();
$form['date_from'] = array(
'#title' => t('Date From'),
'#type' => 'date',
);
$form['date_to'] = array(
'#title' => t('Date To'),
'#type' => 'date',
);
Which displays on the page as:
And creates the select element values (without zero padding):