0
我本身爲codeignitor的config.php笨日期格式
$config['log_date_format'] = 'd/m/Y';
答文我進入'30在文本輸入字段/ 04/2010' ,並試圖挽救下面的日期格式,得到了他以下錯誤
ERROR: date/time field value out of range: "30/04/2010" HINT: Perhaps you need a different "datestyle" setting
相應的查詢低於
UPDATE "assignments" SET "id" = '2', "name" = 'Stadium complex', "date_started" = '30/04/2010', "date_completed" = NULL, "assigned_id" = '9', "customer_id" = '4', "description" = NULL WHERE "id" = '2'
我該如何解決他?我需要在保存前格式化日期嗎?