Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest
  • Page:
  • 1

TOPIC: How can I delete the hours?

How can I delete the hours? 7 years, 1 month ago #32290

Hello
I need to remove the hours from the date. Does anyone know how to do it?

Attached a picture to see what time it is

Re: How can I delete the hours? 7 years, 1 month ago #32319

Dear edumarinho

You can find this field "$item->created" and format date for it in: our module \mod_sj_k2_extra_slider\default.php

eg find:

<?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC5')); ?>

=> change to:

<?php echo JHTML::_('date', $item->created, 'Y-m-d'); ?>

Thanks
Last Edit: 7 years, 1 month ago by anhqn.

Re: How can I delete the hours? 7 years, 1 month ago #32336

Thanks for answering. But in the module folder (mod_sj_k2_extraslider) there is no file named default.php. In the tmpl folder I found a default.php file and try changing the code but it does not work. Attached images for better help. Please I need your help

Re: How can I delete the hours? 7 years, 1 month ago #32338

Thanks for answering. But in the module folder (mod_sj_k2_extraslider) there is no file named default.php. In the tmpl folder I found a default.php file and try changing the code but it does not work. Attached images for better help. Please I need your help:(

Re: How can I delete the hours? 7 years, 1 month ago #32361

  • thuygtn
Dear edumarinho

The file is: modules/mod_sj_k2_extraslider/tmpl/default.php or if you override this file in the file: templates/your_theme/html/mod_sj_k2_extraslider/default.php
you need change this file too.

Thanks
  • Page:
  • 1
Time to create page: 0.21 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes