Unyson
Unyson copied to clipboard
Date picker min date issue
Hello!
Regarding documentation http://manual.unyson.io/en/latest/options/built-in-option-types.html#date-picker : by default minimum date will be current day. Set a date in format d-m-Y as a start date
i tried following code:
'date' => array(
'type' => 'date-picker',
'label' => esc_html__('My date'),
),
'date' => array(
'type' => 'date-picker',
'label' => esc_html__('My date'),
'min-date' => date('d-m-Y'),
),
but in both cases date picker displays August 15 instead of July 15 and today's date can't be chosen.
Please, advice :)