Up Comining events dates

  • brunov99
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 1 week ago #43054 by brunov99
Up Comining events dates was created by brunov99
Hello,

The upcoming events module displays the starting date. Is there a way to display something like from [start date] to [end date] ?



in the module i found only
Code:
<span class="event_date"><?php echo JHTML::_('date', $row->event_date, $config->event_date_format, null); ?></span>
.

Thank you again for your amazing component.
Brunov99 B)

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #43087 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Up Comining events dates
Maybe you can change that code to :
Code:
<span class="event_date"><?php echo JHTML::_('date', $row->event_date, $config->event_date_format, null); ?> - <?php echo JHTML::_('date', $row->event_end_date, $config->event_date_format, null); ?></span>

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • brunov99
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 1 week ago #43096 by brunov99
Replied by brunov99 on topic Up Comining events dates
Thank you so much. :) it's fine.

I have a little request.
I would have the date format in this module only to be 'd-m' (eg 31/03).
It's obvious for guys like you but i'm not comfortable with php.
I think i have to reformat the date set $config->event_date_format in the head of this module but i don't know how to do it ?
i tried to set an my_event_date_format string but it doesn't work.

Brunov99 B)

Please Log in or Create an account to join the conversation.

More
12 years 1 week ago #43130 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Up Comining events dates
In the code, you can simply change the code $config->event_date_format to 'd/m' and It will work well !

Tuan

Please Log in or Create an account to join the conversation.

  • brunov99
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 1 week ago #43150 by brunov99
Replied by brunov99 on topic Up Comining events dates
Yeah ! :silly:

Thank you
Brunov99 B)

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #51125 by Jorge O. Cerpa
Replied by Jorge O. Cerpa on topic Up Comining events dates
Hello,

Hope you are doing fine. It is possible to just have with that code only start and end hours? Not include Dates?

Thanks

Jorge

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc