CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Programming

 count day between date

Print topic Send  topic

Author Message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.