vlibDate

vLIB logo

6.25. diffInDays()

Function Description
  diffInDays (string timestamp1, string timestamp2)

Returns number of days between two given timestamps.

The timestamp parameter is a vlibDate timestamp. For more information, please see the IMPORTANT section.

Example

   $today = $date->now();
   $diff = $date->diffInDays($today, '2050-01-01');