In D7 I'm using date popup form element:
$form['sidebar']['reg_date']['from'] = array( '#type' => 'date_popup', '#title' => t('From:'), );
When user click the textfield a popup calendar will appear, but user also can type the date into the textfield. But he can write something invalid like '44444' and this value will be returned in form state values without any form error. It would be useful if this module had an option for restricting typing date by keyboard. Is there any option for this?
I also have one side question: Is there any option to return unix timestamp value instead of formatted date in form state values? In my case it returns date in format '29.5.2016'.