On Wed, Jul 4, 2012 at 4:30 PM, Steven Scaffidi <ssca...@gmail.com> wrote: > This is what I have going on. > > $con_period = ceil($d['Option']['con_period']); > > $ebegin_date = strtotime("+$con_period months", > strtotime($d['Project']['begin_date'])); > > $ebgin_date = date('Y-m-d', $ebegin_date);
Is this a typo? $ebgin_date isn't used anywhere else and $ebegin_date will be a timestamp, I think, as shown in the array below. > > $d['Expense']['0']['begin_date'] = $ebegin_date; > > This is what $d looks like when I hit submit. Notice the two begin dates > below. > > Array ( [Project] => Array ( [name] => Test 1212 [address] => 412 Dolhonde > St [city] => Gretna [state_id] => 19 [zip] => 70065 [price] => 50000 > [gross_sqft] => 1000 [condition_id] => 2 [location_id] => 4 [ptype_id] => 4 > [begin_date] => 2012-07-04 [notes] => [user_id] => 4 )[Expense] => Array ( > [0] => Array ( [name] => Antcipated Expenses [type] => 1 [cost] => 0 > [begin_date] => 1362376800 ) ) ) > Mike. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php