Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Date Field Macro Problem

In this document:

image description

LibreOffice Writer inserted a date correctly formatted, according to my macro.

This is the format code in the macro:

image description

In a different document:

image description

Using the same macro, LibreOffice Writer inserted the date incorrectly, as a number.

This is the format code in the macro:

image description

The entire code of the macro, as viewed in each document, is identical.

Please tell me why the same code produces a correct format in one document, but not in the other. Both documents were recently created, using the most recent version of OpenOffice.

Please tell me how I fix this.