mulan24
Posts: 6
|
Posted: 08/11/2005, 7:26 PM |
|
hi....
i got some problem about counting days between 2 date. let say given date are 27/04/05 and 2/05/05 so the days different is 6 days. i try using php script using the sample that i got but still didn't succeed. what should i do to count day between 2 dates.
please help me
|
|
|
pintorhm
|
Posted: 11/03/2005, 9:42 PM |
|
//$dias[0] = "2005-10-9";
//$dias[0] = "2005-11-9";
$inicio = $dias[0]; //desde
$fin = $dias[1]; //hasta
$cant_dias = (strtotime($fin)-strtotime($inicio))/86400; // dias de cartelera
|
|
|
mulan24
Posts: 6
|
Posted: 11/30/2005, 8:05 PM |
|
thank pintorhm.
i try it but still not succeed but i try another way to settle that problem.
$timeA = strtotime($t->date1->Getvalue());
$timeB=strtotime(($t->date1->Getvalue());
$g=intval(($timeB-$timeA)/86400))
$t->d->SetValue($g);
TQ.
|
|
|