Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • hoknight Friend
    #1031899

    Hi

    How to modify the Date format on event page?

    Thanks


    1. ScreenShot136
    pavit Moderator
    #1031926

    Hello

    You should edit this file /language/en-GB/en-GB.tpl_ja_alumni.ini and add to it your preferred date format

    (I made an example in image below)

    Then edit this file /html/mod_articles_category/event.php and find

    <?php if (!empty($itemAttrs->ctm_date)) : ?>
                    <h3 class="event-date">
                        <?php echo JHtml::_('date', $itemAttrs->ctm_date, JText::_('TPL_DATE_FORMAT_LC1_2')); ?>
                    </h3>
                <?php endif;?>

    Change it with your desired language format

    <?php if (!empty($itemAttrs->ctm_date)) : ?>
                    <h3 class="event-date">
                        <?php echo JHtml::_('date', $itemAttrs->ctm_date, JText::_('TPL_DATE_FORMAT_LC4')); ?>
                    </h3>
                <?php endif;?>

    Regards


    1. Screenshot-at-mag-08-10-31-28
    2. Screenshot-at-mag-08-10-34-07
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 6 years, 12 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum