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

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

The topic ‘Date picker field displays March 7, 2019 instead of 03/07/2019’ is closed to new replies.