VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Seminar module manager date format
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Seminar module manager date format

Seminar module manager date format 12 Feb 2014 14:20 #3953

Using date_format, i don't see the hour..
This is what i insert:
<td headers="qf_start_date" nowrap="nowrap"><?php echo date_format($course->start_date, 'H:i'); ?></td>


If you go to: new.ivao.ch/index.php?option=com_seminar...rture&Itemid=227 as you can see, under STD table, the hour is not diplayed.
In MYSQL The date and time is correct.
Last Edit: 12 Feb 2014 16:33 by m.freak.

  • Posts:6
  • gianluzzz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Seminar module manager date format 12 Feb 2014 16:33 #3956

try this:

 
$date = DateTime::createFromFormat('j-M-Y', $course->start_date);
echo $date->format('d.m.Y');
 

  • Posts:502
  • theres no place like joomfreak.com
  • m.freak
  • Platinum Boarder
  • OFFLINE
  • Karma: 0

Seminar module manager date format 12 Feb 2014 21:37 #3960

Using your instraction:

<td headers="qf_start_date" nowrap="nowrap"><?php $date = DateTime::createFromFormat('j-M-Y', $course->start_date); echo $date->format('d.m.Y'); ?></td>



this is what i see: This image is hidden for guests. Please log in or register to see it.

  • Posts:6
  • gianluzzz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Seminar module manager date format 12 Feb 2014 22:31 #3961

Problem solved...I created a string in view.html.php as:

$item->start_date_obj = JFactory::getDate($item->start_date);
$item->finish_date_obj = JFactory::getDate($item->finish_date);
 
if ($item->start_date != '00:00'){
$item->start_date = JFactory::getDate($item->start_date)->format("H:i");
} else{
$item->start_date = JText::_('COM_SEMINARMAN_NOT_SPECIFIED');
}
if ($item->finish_date != '00:00'){
$item->finish_date = JFactory::getDate($item->finish_date)->format("H:i");
}else{
$item->finish_date = JText::_('COM_SEMINARMAN_NOT_SPECIFIED');
}


Thanks anyway

  • Posts:6
  • gianluzzz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Seminar module manager date format 02 Apr 2015 13:01 #6473

i need help with seminar manager i cant get courses over from 1.5 and i do not know how to display it. i am stumped there is no support either
trying to get info to 3.3 joomla

Re: Seminar module manager date format 19 Jun 2020 18:52 #12369

Thanks.....
Enjoy your anniversary with us and buy gifts for brother, gifts for sister, gifts for brother, gifts for parents, gifts for grandma and for other family members at one place.
unique christmas gifts
  • Page:
  • 1
  • 2
Time to create page: 1.47 seconds
Wednesday 15 July 2020

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.