Override the Document Locale Date Format
Posted: Mon Jan 07, 2013 9:24 am
There are many threads about formatting Date fields, but what I want to do is to override the date format for the current locale.
In many cases with historical or international documents, the locale is fine for number and currency formats but not for the date. An author might choose from many different flavors of date format available in their locale, a format they are used to from another locale, or an international format (like UTC). There are many AOO functions and extensions that insert dates and allow the default AOO locale processing to format them. This sticks you with the locale format and not the one you want for that document. An example would by the Mendeley citation manager inserting a date into a bibliography entry. The date is always formatted as per the currently set locale for the document.
So, what I want to know is: how do I change the default date format for a specific Writer document for a given locale so that everything else is formatted by that locale but any dates given to AOO by any other code or extension is formatted by the overridden date format for that document?
Remember, this has nothing to do with manual insertion of dates or date fields, nor with any other application but Writer (not Calc!).
In many cases with historical or international documents, the locale is fine for number and currency formats but not for the date. An author might choose from many different flavors of date format available in their locale, a format they are used to from another locale, or an international format (like UTC). There are many AOO functions and extensions that insert dates and allow the default AOO locale processing to format them. This sticks you with the locale format and not the one you want for that document. An example would by the Mendeley citation manager inserting a date into a bibliography entry. The date is always formatted as per the currently set locale for the document.
So, what I want to know is: how do I change the default date format for a specific Writer document for a given locale so that everything else is formatted by that locale but any dates given to AOO by any other code or extension is formatted by the overridden date format for that document?
Remember, this has nothing to do with manual insertion of dates or date fields, nor with any other application but Writer (not Calc!).