Postgresql错误:日期/时间字段值超出范围


Postgresql ERROR: date/time field value out of range

嗨,我正试图在表中插入一个日期。但我弄错了。我也尝试了两种解决方案,我发现:

set datestyle to SQL,DMY;
set datestyle = dmy;

但问题仍然存在。请在我做错的地方帮忙。这就是错误:

Error Number:
ERROR: date/time field value out of range: "24-07-2016" LINE 1: ...isalabad', E'Chief Executive ', E'1994-10-13', E'24-07-20... ^ HINT: Perhaps you need a different "datestyle" setting.
INSERT INTO "employee" ("fullname", "loginname", "email", "password", "phone", "cnic", "address", "jobdescription", "birthdate", "registered", "qualification", "lastcompany", "lastsalary", "status", "location", "department", "designation", "path") VALUES ( E'Shahzeb Akram', E'shaizi96', E'shaizi@test.com', E'1234', E'3137688894', E'33100-8398084-5', E'Faisalabad, Faisalabad', E'Chief Executive ', E'1994-10-13', E'24-07-2016', E'BSCS', E'BOLT', E'121212', E'1', '', E'39', E'43', E'http://localhost/department/uploads/Shahzeb Akram/Screenshot_(1).png')
Filename: C:/wamp/www/department/system/database/DB_driver.php
Line Number: 691

我必须将html输入标记中的日期格式更改为Postgres日期格式。感谢@Avision告诉我如何查看Postgres使用的当前日期格式。

我更改了它,现在它运行良好:)

  <input type="text" data-date-format="mm-dd-yyyy" >