[Pre-billing date] => DateTime Object ( [date] => 2019-03-17 00:00:00.000000 [timezone_type] => 3 [timezone] => PRC )
[Advance receipt date] => DateTime Object ( [date] => 2019-04-01 00:00:00.000000 [timezone_type] => 3 [timezone] => PRC )
Judgment For the date format, use
echo "{$key} -> ".date_format($val,"Y-m-d") ." <br />";
Still not working. Please tell me how to convert the format. Thank you.
Thank you for your reply. Theoretically, few people use mssql. But there should be a solution for this type. I finally converted it into a string when querying in mssql. It was OK. If I used * it would not work.
In mysql, few people use datetime data. They all directly pass the timestamp of char or int, and use date() when reading.