Custom Field: date

When adding custom fields you can use the date type to display a field.

date Field Type

This will display a date picker when clicked.

'name'         => 'property_field_date',         // Required: Custom field key.
'label'        => 'Date Field Label',            // Required: Field Label.
'type'         => 'date',                        // Required: Field Type.

'maxlength'    => '140',                         // Optional: Allowed character count.
'autocomplete' => 'off',			 // Optional: Disable browser autocomplete.
'include'      => array( 'property', 'rental' ), // Optional: Post types or exclude for all.
'class'        => 'some-class-name',             // Optional. Custom class name.
'width'        => '1',                           // Optional. Field Width: 1, 2, 2-3, 3.
'help'         => 'Optional: Help text.',        // Optional: Help text.
'import'       => 'preserve',                    // Optional: Do not update when imported.

Custom date field example:

Field selected: