You can convert a timestamp or interval value to a string with the to_char() function:
SELECT to_char('2016-08-12 16:40:32'::timestamp, 'DD Mon YYYY HH:MI:SSPM');
This statement will produce the string "12 Aug 2016 04:40:32PM". The formatting string can be modified in many different wa...