Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Date picker min date issue

Open dk-wordpress opened this issue 10 years ago • 0 comments

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 :)

dk-wordpress avatar Jul 15 '16 07:07 dk-wordpress