In postgres I have a table with date column. Now postgres allows me to write date in Y-m-d format. But I need date in d/m/Y format. How to change it?
When I do:
show datestyle;
I get:
"ISO, DMY"
And input date in table in this format 13/02/2009
But when I close and open table again I see this 2009-02-13. JDBC gives me date in this format too. What am I doing wrong?
yyyy-mm-dd is the recommended format for date field, its the ISO 8601 format.
You can change the format in the postgresql.conf file.
The document states
Hope this helps!