Replies: 1   Views: 4323
Date/time field language
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Edics  · 10-02-2016 - 15:14


In our templates, we have datetime fields automatically setted up to the current date during file processing. However, even after declaring a language with setLanguage() method, this field is still written in english.
How could we set another language for this datetime field ?


Posted by admin  · 11-02-2016 - 07:46


Sorry but there's no method to change the date format in datetime field templates. If you create document from scratch the addDateAndHour allows to set the date format dinamically; maybe you could add placeholders in your documents and replace them by WordFragments with the needed date format.