Re: Datum mit deutschem locale formatieren?
Hallo zusammen,
vielen Dank euch allen für die Infos!
Ich nutze noch 8.0 habe dann aber wenigstens wieder einen Grund mich auf 8.2
zu freuen, nachdem der lang ersehnte "PL/PGSQL: Dynamic Record
Introspection"-Patch von Titus von Boxberg ja leider durch Tom Lane
abgelehnt wurde :(
Gruß
Tobias
P.S. ich habe es schon mal angesprochen - ist es wirklich sinnvoll zwei vom
topic her identische deutsche PG-Mailinglisten zu unterhalten?
Tobias Bußmann <e(dot)t(dot)bussmann(at)ing(dot)twinwave(dot)net> wrote:
> Hallo,
> ich versuche mit
>
> SELECT to_char(to_date('20060501', 'YYYYMMDD'), 'FMDD. FMMonth YYYY');
>
> ein Datum wie '1. Mai 2006' zu formatieren. Leider gibt er mir immer
> englische Monatsnamen aus. Das Locale ist auf deutsch gestellt:
>
> SHOW lc_time;
> liefert
> de_DE(dot)iso885915(at)euro
>
> klar kann ich mir ne StoredProcedure bauen, die mit einer Case
> Abfrage den Monat ersetzt, aber sollte das nicht direkt über das
> locale gehen?
>
> Gruß
> Tobias
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 1: if posting/reading
> through Usenet, please send an appropriate subscribe-nomail
> command to majordomo(at)postgresql(dot)org so that your message can
> get through to the mailing list cleanly
Home |
Main Index |
Thread Index