Reputation: 1299
I have a Zf2 form date element and i use it this way,
$this->add(array(
'type' => 'Zend\Form\Element\Date',
'name' => 'releasedate',
'options' => array(
'label' => 'Release Date'
),
'attributes' => array(
'min' => '2012-01-01',
'max' => '2020-01-01',
'step' => '1',
)
));
So in chrome i get a date picker but not in safari or firefox ? i need to do any new configurations for that ?
Upvotes: 0
Views: 791
Reputation: 7223
This is a Typical behavior, for the Date type, the reason for this is, Date Type is associated with HTML 5 Features , and all browsers dont support it, you have to use some thing different like , Jquery Calendar and then Mask date to (obviously after posting data)
Zend\Form\Element\Date
Upvotes: 1
Reputation: 161
not all browsers supported input type date http://caniuse.com/input-datetime
Upvotes: 5