Re: How can I add months to a date?

2012-07-05 Thread Mike Griffin
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

Re: How can I add months to a date?

2012-07-04 Thread Mike Griffin
On Wed, Jul 4, 2012 at 6:29 AM, Steven Scaffidi ssca...@gmail.com wrote: I want to be able to add a certain amount of months to date. Basically I have a from in order to start a new product. In the form, there is a begin date that the user select (this is a date). I want to add a variable

Re: How can I add months to a date?

2012-07-04 Thread Steven Scaffidi
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); $d['Expense']['0']['begin_date'] = $ebegin_date; This is what $d looks like

How can I add months to a date?

2012-07-03 Thread Steven Scaffidi
I want to be able to add a certain amount of months to date. Basically I have a from in order to start a new product. In the form, there is a begin date that the user select (this is a date). I want to add a variable amount of months to that date and then save that date into another field. How