Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLVED] How to displays date in ads details?

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] How to displays date in ads details?

  • yaltabest@yandex.ru
  • Topic Author
  • Offline
  • Gold
  • Gold
More
11 years 3 months ago - 11 years 3 months ago #3002 by yaltabest@yandex.ru
[RESOLVED] How to displays date in ads details? was created by yaltabest@yandex.ru
How to displays date in ads details template?
I use this code


<?php echo "<div'>".$this->content->date_created."</div>"; ?>

but it displays fuul date with hours - 2013-12-14 19:49:20

I need it displays only date 2013-12-14 in format 14 dec. 2013
Last edit: 11 years 3 months ago by tompap.
More
11 years 3 months ago #3006 by tompap
Replied by tompap on topic How to displays date in ads details?
Hello, you can do:

<?php echo "<div'>".date('Y-m-d',strtotime($this->content->date_created))."</div>"; ?>
  • yaltabest@yandex.ru
  • Topic Author
  • Offline
  • Gold
  • Gold
More
11 years 3 months ago - 11 years 3 months ago #3020 by yaltabest@yandex.ru
Replied by yaltabest@yandex.ru on topic How to displays date in ads details?
Thanks.

I used this code

<?php echo "Дата: ".date('d M Y',strtotime($this->content->date_created));?>

Everything fine, except date displays on english... I need on russian.

Last edit: 11 years 3 months ago by yaltabest@yandex.ru.
More
11 years 3 months ago #3049 by tompap
Replied by tompap on topic How to displays date in ads details?
date is online working with english
you can try to use strftime (check php documentation to correct usage)

or you should display the month using numbers only "small m"
  • yaltabest@yandex.ru
  • Topic Author
  • Offline
  • Gold
  • Gold
More
11 years 3 months ago #3055 by yaltabest@yandex.ru
Replied by yaltabest@yandex.ru on topic How to displays date in ads details?
I included in add details template file next code

<?php
setlocale(LC_ALL, 'ru_RU.UTF-8');
?>

But date still on english... In other cpmponents I don't have this problem....
Can you include in next version date in ads details?
Or may be you can help me with this?
More
11 years 3 months ago #3065 by tompap
Replied by tompap on topic How to displays date in ads details?
The problem with setlocale is that your server should have this locale install.
On linux command you can do : locale -a to see all locale installed.

You are able to display date with fullname like: Monday , Thrusday in the order components (com_content ?)
Moderators: perry
Time to create page: 0.127 seconds
Powered by Kunena Forum