
July 11th, 2012, 01:31 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
Use to_char()
Code:
select to_char(your_date_column, 'IW/YYYY YYYY-MM-DD')
More details in the manual: http://www.postgresql.org/docs/current/static/functions-formatting.html
__________________
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
http://forums.devshed.com/misc.php?do=bbcode#code
Tips on how to ask better questions:
http://tkyte.blogspot.de/2005/06/how-to-ask-questions.html
http://wiki.postgresql.org/wiki/SlowQueryQuestions
http://catb.org/esr/faqs/smart-questions.html
|