a=02-08-2009 or 2009-08-02
b=03-08-2009 or 2009-08-03
when subtracting it i should get the answer as 1............do someone tell me
Page 1 of 1
how to calculate difference between two dates
#2
Posted 02 July 2009 - 07:17 AM
$diff = strtotime("2009-08-03") - strtotime("2009-08-02");
$days = $diff / 60 / 60 / 24
#3
Posted 28 July 2009 - 11:01 AM
Dave, on 02 July 2009 - 07:17 AM, said:
<pre class='prettyprint'>
$diff = strtotime("2009-08-03") - strtotime("2009-08-02");
$days = $diff / 60 / 60 / 24
</pre>
$diff = strtotime("2009-08-03") - strtotime("2009-08-02");
$days = $diff / 60 / 60 / 24
</pre>
yes thanks i got it
thanks to the hearts that wishes to clear my doubt or to help me
vikram
vikram
#4
Posted 13 September 2012 - 04:21 AM
how to subtract between two different times
12.00.00 - 03.30.00
please help me
12.00.00 - 03.30.00
please help me
#5
Posted 13 September 2012 - 06:25 AM
$from = strtotime("2012-09-12 12:00:00");
$to = strtotime("2012-09-13 03:30:00");
$diff = round(abs($to - $from) / 60, 2);
tpandi, on 13 September 2012 - 04:21 AM, said:
how to subtract between two different times
12.00.00 - 03.30.00
please help me
12.00.00 - 03.30.00
please help me
Born to create drama
Share this topic:
Page 1 of 1

Help
This topic is locked











