you can make normal input to save it to database like ex.
echo $this->Form->input('begin_time', array(
'label' => 'Start',
'value' => date('Y-m-d'). ' 09:00'
));
or you can use function like this for ex. in AppModel
/**
* input field of type datetime returns array - this func change it
* @param array $dateTimeArray
* @return string "YY-MM-DD HH-ii"
*/
public function timestamp($dateTimeArray) {
return "{$dateTimeArray['year']}-{$dateTimeArray['month']}-{$dateTimeArray['day']} {$dateTimeArray['hour']}:{$dateTimeArray['min']}";
}
and than in your model in beforeSave use it ;)