hii,

I put the code like this : echo $form->input('due_date',array(date('Y-
m-d H i s', strtotime('+1 hour',strtotime($start_datetime)))));
shows an error, ,,,,Notice (8): Undefined variable: start_datetime
[APP/views/issue_library_items/add.ctp,


On Oct 30, 12:59 pm, Martin Westin <martin.westin...@gmail.com> wrote:
> I do a lot of this kind of thing:
>
> date('Y-m-d H i s', strtotime('+1 hour',strtotime($start_datetime)));
>
> You can use handy things like +2 monday to get to monday two weeks
> from now and a number of cool things that I prioritize.
>
> /Martin
>
> On Oct 30, 8:08 am, Jiru <jiransl...@gmail.com> wrote:
>
> > hii,
>
> >  In my project there is issuedateand duedatein dropdown list.
> > My problem is,
> >  if the issuedateis October 10 2009 i want to display the duedate
> > as October 20 2009 automatically. How i can add/calculate thedate.
>
> > regards,
> >                 jiru

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
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?hl=.


Reply via email to