> For a moment I thought you could do to_char(now(),'Day DD Month YYYY'
> but you're quite right you need to rtrim() the various pieces.
regression=# select to_char(now()-10,'Day DD Month YYYY'); to_char
-----------------------------Sunday 04 March 2001
(1 row)
regression=# select to_char(now()-10,'fmDay fmDD fmMonth YYYY'); to_char
---------------------Sunday 4 March 2001
(1 row)
The 'fm' prefix is not very well explained in the docs at
http://www.postgresql.org/devel-corner/docs/postgres/functions-formatting.html
If anyone wants to suggest better wording, I'll be glad to put it in.
regards, tom lane