Hi,
The default settings changeMonth
and changeYear
are set to true
. You can change them to false
by using the code
'fields' => [
[
'name' => __( 'Date', 'your-text-domain' ),
'id' => $prefix . 'date_90l222y2yyt',
'type' => 'datetime',
'js_options' => [
'changeMonth' => false,
'changeYear' => false,
],
],
],
Or Date Picker Options in the Builder https://share.getcloudapp.com/L1uBmwDw
Get more details here https://api.jqueryui.com/datepicker/#option-changeMonth