Change Date Format
-
Hello,
The current date format for the invoice is ‘December 12, 2020′. I would like to change this to the Dutch date format. Preferably, I would like ’12 December 2020’. But the plugin doesn’t recognise Dutch month names.
Therefore I put the following code in invoice.php:
<tr class="order-date"> <th><?php _e( 'Order Date:', 'woocommerce-pdf-invoices-packing-slips' ); ?></th> <?php setlocale(LC_ALL,'nl_NL'); ?> <td><?php echo date("d/m/Y") ?></td> </tr>
It resulted in the date format 12/12/2020. However, after a recent update this code doesn’t work anymore.
Is it possible to set the date format in the settings of the plugin? Or to make this setting available? Or can someone help me with correct code tot put in invoice.php?
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change Date Format’ is closed to new replies.