help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED]Date format in calendar

Re: [SOLVED]Date format in calendar

1 week 5 days ago - 1 week 5 days ago
#32587
Thanks!

If i need to do this after every update, i'll do it. (we use Y. M. D date format)
Last edit: 1 week 5 days ago by Llondwel.

Please Log in or Create an account to join the conversation.

Re: [SOLVED]Date format in calendar

1 week 5 days ago - 1 week 5 days ago
#32588
If you create an override of the calendar template and insert the JavaScript code at the end, the effect will remain also after the update. This is the better solution, because this way you can avoid a core hack

Just insert:
Code:
<script>   document.addEventListener('DOMContentLoaded', function() {     // Specifically target the td.monthname element within div.jem_calendar and table.month     const monthname = document.querySelector('.jem_calendar table.month td.monthname');     // If the element was found     if (monthname) {       // Extract and split the text       const text = monthname.innerText;       const parts = text.split(' ');              // If the format is correct (month year)       if (parts.length === 2) {         // Swap the parts and join them back together         monthname.innerText = `${parts[1]} ${parts[0]}`;       }     }   }); </script>
Last edit: 1 week 5 days ago by hekla.

Please Log in or Create an account to join the conversation.

Time to create page: 0.431 seconds