I want two date difference in number of days in php. Following is the code which works perfectly for rest of the given date except 32 in days. I know in english there is no 32 in days but i am using Nepali Date to store in db. In Nepali calendar there is 32 days also, so i need help from anyone.
$dStart = new DateTime('2071-02-32');
$dEnd = new DateTime('2071-02-31');
$dDiff = $dStart->diff($dEnd);
echo $dDiff->days; //output should come 1