Welcome, Guest
Username: Password: Remember me

TOPIC: Date/Time Format

Date/Time Format 9 years 8 months ago #1180

Hi,
Is it possible to change the date time format to the following: 9.26.14 6:30pm - 8:00pm. I want to remove the word "until: and just show from time - to time.

Thanks
The administrator has disabled public write access.

Date/Time Format 9 years 8 months ago #1181

  • Super User
  • Super User's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3519
  • Thank you received: 278
  • Karma: 65
Hello
Yes, You can format date in module config (option date format)
And you can see guide in php.net/manual/en/datetime.formats.date.php
And you can delete "until" text in file module/mod_jo_facebookevents/tmpl/default.php go to line 110
Change
<?php echo date($params->get('dateformat'), strtotime($fbevent["start_time"]))?><?php if($fbevent["end_time"] !=""){?><?php echo JText::_("MOD_JO_FACEBOOKEVENTS_UNTIL") ?><?php echo date($params->get('dateformat'), strtotime($fbevent["end_time"]))?><?php }?>
To
<?php echo date($params->get('dateformat'), strtotime($fbevent["start_time"]))?><?php if($fbevent["end_time"] !=""){?> - <?php echo date($params->get('dateformat'), strtotime($fbevent["end_time"]))?><?php }?>

Or can you send me joomla administrator via contact form? So we can help you
Best regards
Bach Pham
Last Edit: 9 years 8 months ago by Super User.
The administrator has disabled public write access.
Time to create page: 0.099 seconds