DateTime Object ( [date] => 2020-05-10 00:00:00.000000 [timezone_type] => 3 [timezone] => UTC )
above show when I do print_r
below is the code
$bb=$row['dueDate'];
print_r($bb);
echo $bb->date;
now problem when i remove print_r command then $bb->date
not show where as when print_r($bb)
then it show echo data of $bb->date
how to fixed this