badai707
Posts: 2
|
| Posted: 08/11/2005, 1:48 AM |
|
hi..help me plz... how to calculating the number of days between any two dates using php?i've tried manipulate javascript but not success..
_________________
is |
 |
 |
Damian Hupfeld
|
| Posted: 08/11/2005, 5:28 AM |
|
$numdays = (strtotime("date1") - strtotime("date2")) / (60 * 60 * 24);
print $numdays;
"badai707" <badai707@forum.codecharge> wrote in message
news:542fb10c33cd7d@news.codecharge.com...
> hi..help me plz... how to calculating the number of days between any two
> dates
> using php?i've tried manipulate javascript but not success..
> _________________
> is
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
badai707
Posts: 2
|
| Posted: 08/12/2005, 2:00 AM |
|
mycode like this.. ..
$abc->total_date->SetValue((strtotime($abc->last_date->GetValue()) - strtotime($abc->start_date->GetValue()) / (60 * 60 * 24)
i dont know how, the output is -1 ..
_________________
is |
 |
 |
|