$ datetime 1 = date _ create(' 20 13- 12-02 ');
$ datetime 2 = date _ create(' 20 13- 12-25 ');
$ interval = date _ diff($ datetime 1,$ datetime 2);
echo $ interval-& gt; Format ("%R%a days");
& gt