The cakephp helper is sending my dateTime back to me in an array. This
is not an issue when I save it to the database. it seems cakephp
converts it to a timestamp nicely for me before the save.
But In the particular case I need to create a dateTime object for use
in a component. so I assume I need to convert it to a string.

Is there some cakephp function that would convert this to a timestamp
(string).  Maybe there is some other way to create a timestamp string
from data returned from my form?

echo $this->Form->input('send_date', array('type' => 'datetime',
'label' => 'Send email on ', 'minYear' => date('Y'), 'maxYear' =>
date('Y') + 2, 'dateFormat' => 'MDY', 'timeFormat' => '12'));

[send_date] => Array
(
 [month] => 02
[day] => 11
[year] => 2012
[hour] => 10
[min] => 22
[meridian] => am
)

cake 1.3
Thanks Robert

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to