Change of language in date (months)

Hi all,

My current version is 1.5.11.
I am trying to change my date format from 29.10.2025 to 29. okt 2025 (in Danish). Is there any easy way of doing this? I found a reply from Pitma in here: Custom PDF template issue - #3 by simxware

However, cannot revive that thread. Anyone know where I can put that piece of code he mentions for the invoiceplane.php? Here’s the code:

<th><span>Date</span></th>
	<?php
	$monthEng = array('January', 'February', 'March');
	$monthDeu = array('Januar', 'Februar', 'März');
	$date = date_from_mysql($invoice->invoice_date_created, TRUE);
	$date = str_ireplace($monthEng, $monthDeu, $date);
	?>
	<td><span><?php echo $date ?></span></td>
1 Like

I still think you should do it inside the settings.
There’s a setting to place the date format there.

That piece of code you posted goes in 1 of the invoice templates: application/views
It represents a table cell (<td>