Auto-Calculate The Date

Hi…:)

i’m having a problem to auto-calculate the date…

i mean,how to calculate the day between date?

for example; Jan 26th until Jan 30th = 5 days…

can anyone help me? thank you…:D

sorry for my broken english…

hi guys

does anyone know how to solve my problem??

anyone??

please…

i really need your help…

thank you…

You can do it in PHP using DateTime.

hi…

i already try it…but it doesn’t work…

i want it auto calculate the days…

any other suggestions?

or Yii doesn’t have the way to auto calculate maybe?

hi guys…

i already try this method, but it still doesn’t calculate it… :-[


<?php

      $date_start = new DateTime('');

      $date_end= new DateTime('');                   

      echo $duration = $date_start->diff($date_end)->days;      

?>

i refered from this

and

i hope anyone can help me to solve this…

thank you… :)