*LOL*
you would need to define your start_dateime var in the first place..^^


On 10 Nov., 10:51, jiru <[email protected]> wrote:
> 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 <[email protected]> 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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to