My Datestyle:
=> show datestyle;
DateStyle
-----------
ISO, YMD
Its showing format as:
=> select now()::DATE;
now
------------
2013-10-17
But I want the output:
now
------------
17-Oct-2013
This can be done using TO_CHAR(timestamp,'MON-YY')
but its datatype changes to character string I want the datatype as timestamp only