I have se the below date format in the codeignitor config.php
$config['log_date_format'] = 'd/m/Y';
Ans wen I enter '30/04/2010' in the text input field and tried to save, got he following error
ERROR: date/time field value out of range: "30/04/2010" HINT: Perhaps you need a different "datestyle" setting
Corresponding query is below
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'
How can I solve his? Do I need to format the date before save?