Happy Children's Day 2020! Up to 50% OFF Storewide!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest
  • Page:
  • 1

TOPIC: How can I delete the hours?

How can I delete the hours? 3 years, 2 months 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? 3 years, 2 months 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: 3 years, 2 months ago by anhqn.

Re: How can I delete the hours? 3 years, 2 months 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? 3 years, 2 months 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? 3 years, 2 months ago #32361

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.51 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.
Happy Children's Day 2020! Up to 50% OFF Storewide

Suggested Posts

(/)
Result not found!

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
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes