Hi,
Can you please let me know which wrong with the setting save_format
? The format of the date should be
array(
'name' => esc_html__( 'To date', 'textdomain' ),
'id' => $prefix . 'to_date',
'desc' => esc_html__( 'End of date range', 'textdomain' ),
'type' => 'date',
// Date picker options. See here http://api.jqueryui.com/datepicker
'js_options' => array(
'dateFormat' => 'd/m/y',
'changeMonth' => true,
'changeYear' => true,
),
'save_format' => 'Y-m-d',
),
Get more details here https://www.w3schools.com/php/func_date_date_format.asp