CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 date calculation

Print topic Send  topic

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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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