I\'m doing this in app/views/mymodel/add.ctp
:
input(\'Mymodel.mydatefield\'); ?>
And then, in
You could write a Helper that takes in $this->data['Mymodel']['mydatefiled']
as a parameter, assumes that year/month/day are in the array, and parse accordingly:
Or something like that. I think the DateTime object was added in...PHP 5.2? CakePHP 1.x is targeted at PHP 4 compatibility, so I don't think there's any "CakePHP way" to do it, at least not for 1.x.