jpser
Posts: 44
|
Posted: 08/19/2007, 3:05 AM |
|
php 5:
in a search form startdate , enddate as textbox
how to define precisely, enddate = startdate + 1 year
and where to define such as when startdate changes , enddate is computed automatic
those 2 textboxes are parameters of a grid
( I prefer to use a javascript , php , or CCS function than a database function)
mktime ???
_________________
jp serei
|
|
|
wkempees
|
Posted: 08/19/2007, 4:24 AM |
|
CCDateAdd($date, value)
Value: year(s), month(s), day(s),........
$newdate = CCDateAdd($startdate, +1 Year);
It is in Common.php, search for it and analyze the function if questions
remain.
Walter
"jpser" <jpser@forum.codecharge> schreef in bericht
news:546c815edc4543@news.codecharge.com...
> php 5:
> in a search form sartdate , enddate as textbox
>
> how to define precisely, enddate = startdate + 1 year
>
> those 2 textboxes are parameters of a grid
>
> ( I prefer to use a php or CCS function than a database function)
> mktime ???
> _________________
> jp serei
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
jpser
Posts: 44
|
Posted: 08/19/2007, 5:08 AM |
|
thank you very much for this quick and efficient answer
I just wonder why I cannot find this function in the help document ?
I shall try myself to help other users as soon as i get better
_________________
jp serei
|
|
|
|