Jevents 2.x (Free Access)

Date formatting in module

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby cpassmore » Mon Nov 19, 2012 10:46 pm

I'm using the latest events module on the index page of my site. Current formatting is like so
Code: Select all
${eventDate} [!a: - ${endDate(%I:%M%p)}]<br />${title}


which displays like this:
Wed Dec 05 @08:00 - 05:00PM

Received a request today that if the event spans into the next day to format date like this (event goes to next day).
Wed Dec 05 - 06 @08:00 - 05:00PM

Is there a way to do an if statement:
Code: Select all
if (eventStart > eventEnd) {
     //include end date number
}


Thank you for ANY help. I don't really know php but am familiar with other server languages, so if you could point me in the right direction… I'd be SO appreciative.
cpassmore
 
Posts: 1
Joined: Mon Nov 19, 2012 10:39 pm

Postby Tonyp » Tue Nov 20, 2012 8:21 am

---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23769
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man


Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users