Custom Fields
Re-Envisioned
Support General Saving Dates In Another Format

This topic contains 2 replies, has 2 voices, and was last updated by  Hazmi 4 months, 1 week ago.

  • Creator
    Topic
  • #13191
    Resolved
    Hazmi
    Participant

    Hi,

    this from your DOCS

    array(
        'js_options' => array(
            'dateFormat'      => 'dd-mm-yy',
        ),
        'save_format' => 'Y-m-d',
    ),

    doesn’t work. The date is display in format “Y-m-d”.

    PHP (5.4), Metabox (4.16.3)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #13251

    Anh Tran
    Keymaster

    Hi Hazmi,

    I’ve just tested the code and it works. As you can see in this screenshot, the date appearing in the input is 20-02-2019, but its value in the custom field is 2019-02-20:

    View post on imgur.com

    Can you please try again?

    #13252

    Hazmi
    Participant

    Hi,

    now it is working.. Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.