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 copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.
Date formatting in module
by 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
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:
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.
- 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
Re: Date formatting in module
by Tonyp » Tue Nov 20, 2012 8:21 am
---------------------------------------
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8715
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
2 posts
• Page 1 of 1
Return to Jevents 2.x (Free Access)
Who is online
Users browsing this forum: No registered users

