Marios

Date format

15 posts in this topic

Hi Marios

Please open file mod_bt_contentslider/tmpl/default.php

Find this code

<?php echo JText::sprintf('BT_CREATEDON', $row->date); ?>

Change it to

<?php echo date('d.m.y', strtotime($row->date)); ?>

Enjoy it.

Marios likes this

Share this post


Link to post
Share on other sites

Hi,

I write in the same thread.

I wanted to change the date format and I found this topic.

But when I changed the code I get everywhere the same date: 01.01.70

Where is the catch? :)

Share this post


Link to post
Share on other sites

Hi :) I have a problem with the date format. I was able to change the date format to "d / m Y" in the BT CONTENTSLIDER, but in the Articles flag is still in the format "m / d Y" and I can not change that. Of course I read the thread

Please help.

Share this post


Link to post
Share on other sites

Hi

What do you mean with "Articles flag"?

Is it article's detail page?

If yes, this problem belongs to your template. Please ask your template developer to solve it.

If you are using a BT template. please post a topic to template's forum.

Thanks

Share this post


Link to post
Share on other sites

Hi. i would like to show the date like this: 18/11/2019 . Please help me.

But when i set  <?php echo date('d/m/y', strtotime($row->created)); ?>  it showed 18/11/19

                       <?php echo date('d/m/yy', strtotime($row->created)); ?>  it showed 18/11/1919

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now