1
開捕致命錯誤:類的DateTime的對象無法轉換爲字符串對象不能轉換爲字符串在我的代碼
$timestamp = "$day/$month/$year 00:00:00";
$timestamp = date_create_from_format('d/m/Y H:i:s', $timestamp);
echo $timestamp->format('Y-m-d H:i:s');
我應該怎麼做呢?