How to change date_popup date format in form? I am working on configuration page for the custom module, using datepicker with date module. 

When i set #date_format to 'd-m-Y' its ok, i need a day-month-year format but when i submit form and trying to get variable from variable_get(), i see only year-month-day format, 

GOAL: i need this variable to show up as default value or maybe placeholder in proper date format ('d-m-Y'), 

minor goal: also i want this datepicker not showing up "today" but i need date position in calendar to stick on variable from variable_get(). Thanks!

function mymodule_admin($form, &amp;$form_state) {


$form['mymodule_start_date'] = array(
    '#type' =&gt; 'date_popup',
    '#title' =&gt; t('Start date'),
    '#date_format' =&gt; 'd-m-Y',
    '#attributes' =&gt; array('placeholder' =&gt; variable_get('mymodule_start_date'),
    '#datepicker_options' =&gt; array('maxDate' =&gt; 0),
    '#date_year_range' =&gt; '-3:+0',
    '#date_label_position' =&gt; 'above',
    '#theme_wrappers' =&gt; array('date_popup'),
    '#required' =&gt; TRUE, 
);

return system_settings_form($form);


};

EDIT: my resource datepicker API
EDIT: fixed by setting up drupal date format and using datepicker_options:

$form['mymodule_start_date'] = array(
'#type' =&gt; 'date_popup',
'#title' =&gt; t('Start date'),
'#date_format' =&gt; 'd-m-Y',
'#datepicker_options' =&gt; array(
    'maxDate' =&gt; 0,
    'dateFormat' =&gt; date_popup_format_to_popup('d-m-Y'),
    ),
'#date_year_range' =&gt; '-3:+0',
'#date_label_position' =&gt; 'above',
'#theme_wrappers' =&gt; array('date_popup'),
'#required' =&gt; TRUE, 


);