Support

Account

Home Forums Front-end Issues Date picker field displays March 7, 2019 instead of 03/07/2019

Unread

Date picker field displays March 7, 2019 instead of 03/07/2019

    • k-Dushi

    • March 8, 2019 at 12:12 am

    Hi,

    I’ve created a date picker field with Display Format and Return Format both set to m/d/Y. When editing the post I can see the Display Format is working correctly (03/07/2019), however when visiting the page March 7, 2019 is displayed. To double check I generated the following php code which also looks fine to me. Does anyone encountered the same issue and does someone know how to fix it? Thank you!

    array(
    			'key' => 'field_5c703c1fd5851',
    			'label' => 'Valid until date',
    			'name' => 'valid_until_one',
    			'type' => 'date_picker',
    			'instructions' => 'You don\'t have to fill in a date when your deal doesn\'t have an expiry date.',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array(
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'display_format' => 'm/d/Y',
    			'return_format' => 'm/d/Y',
    			'first_day' => 1,
    		),
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.