php - Datetime Difference Error -
I have a problem when I use the difference of datetime.
Here is the php code The correct result should be 2. But unfortunately this is the result of Try it out, You can enter You can see your answer on the date difference for more information. This can help you. $ datetime1 = new date time ('2009-10-11'); $ Datetime2 = new date time ('2009-10-13'); $ Interval = $ datetime1- & gt; Different ($ datetime2); Copy $ interval-> day;
6015 . Even when I change my date, its still
6015 are you facing this problem? I tried to run the script from other computers but its work.
$ interval-> Day to
$ inter-> d. Change to Day "
Comments
Post a Comment