You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a trouble :
I'm trying to set up the bundle but I can't set the desired startDate or format.
Here my formType :
$builder
->add('dateBegin'
, 'collot_datetime'
, array(
'pickerOptions' =>
array('format' => 'dd/mm/yyyy hh:ii'
, 'weekStart' => 1
, 'startDate' => date('d/m/Y H:i')
, 'endDate' => '01/01/3000'
, 'daysOfWeekDisabled' => '0,6'
, 'autoclose' => true
, 'startView' => 'month'
, 'minView' => 'day'
, 'maxView' => 'decade'
, 'todayBtn' => true
, 'todayHighlight' => true
, 'keyboardNavigation' => true
, 'language' => 'fr'
, 'forceParse' => true
, 'minuteStep' => 30
, 'pickerReferer ' => 'default' //deprecated
, 'pickerPosition' => 'bottom-right'
, 'viewSelect' => 'day'
, 'showMeridian' => false
, 'initialDate' => date('d/m/y', time()), //example
)
)
But when I click on my input I cannot select any date whereas I set format to "dd/mm/yyy" and startDate to "date('d/m/Y')" everything works fine but I lose the datetime format for an only date one.
Where might be my mistakes ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I've a trouble :
I'm trying to set up the bundle but I can't set the desired startDate or format.
Here my formType :
$builder
->add('dateBegin'
, 'collot_datetime'
, array(
'pickerOptions' =>
array('format' => 'dd/mm/yyyy hh:ii'
, 'weekStart' => 1
, 'startDate' => date('d/m/Y H:i')
, 'endDate' => '01/01/3000'
, 'daysOfWeekDisabled' => '0,6'
, 'autoclose' => true
, 'startView' => 'month'
, 'minView' => 'day'
, 'maxView' => 'decade'
, 'todayBtn' => true
, 'todayHighlight' => true
, 'keyboardNavigation' => true
, 'language' => 'fr'
, 'forceParse' => true
, 'minuteStep' => 30
, 'pickerReferer ' => 'default' //deprecated
, 'pickerPosition' => 'bottom-right'
, 'viewSelect' => 'day'
, 'showMeridian' => false
, 'initialDate' => date('d/m/y', time()), //example
)
)
But when I click on my input I cannot select any date whereas I set format to "dd/mm/yyy" and startDate to "date('d/m/Y')" everything works fine but I lose the datetime format for an only date one.
Where might be my mistakes ?
Thanks.
The text was updated successfully, but these errors were encountered: