Wednesday, 09 December 2015
  6 Replies
  1K Visits
0
Votes
Undo
Hi Community,

I'm using the following custom string:

${startDate(%d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: - ${endDate(%d. %b. %Y)}]
${title}


With this I get a formatted date for Multi-Day-Events like "24. Jun. 2016 - 26. Jun. 2016"

Is it possible to get a formatted date like: "24. - 26. Juni 2016"

THX
Wednesday, 09 December 2015 19:26
·
#161535
0
Votes
Undo
Hello,

Yes use:


${startDate(%d.)}[!a:, ${startDate(%H:%M)}][m: - ${endDate(%d. %b. %Y)}]
${title}


Or if you only want it to apply to multiday you could use:


[!m: ${startDate(%d. %b. %Y)}][!a:, ${startDate(%H:%M)}][m: - ${startDate(%d. )} ${endDate(%d. %b. %Y)}]
${title}



Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 10 December 2015 07:27
·
#161536
0
Votes
Undo
[!m: ${startDate(%d. %b. %Y)}][!a:, ${startDate(%H:%M)}][m: - ${startDate(%d. )} ${endDate(%d. %b. %Y)}]
${title}


This code is almost what I wanted. One day Events are displayed perfect f.e. "10. Sep. 2016
Fohlenmarkt"


But multiday events are displayed in a wrong format: "- 24. 26. Jun. 2016
Großes Sommerturnier"
instead of "24. - 26. Jun. 2016
Großes Sommerturnier"


Is it possible to change the code to get that final format?


The other code

${startDate(%d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: - ${endDate(%d. %b. %Y)}]
${title}


displays mutiday event as wanted, but one day events are without month and year f.e. "16.
Fohlenschau"


THX
Thursday, 10 December 2015 10:51
·
#161537
0
Votes
Undo
Try
[!m: ${startDate(%d. %b. %Y)}][!a:, ${startDate(%H:%M)}][m: - ${startDate(%d - )} ${endDate(%d. %b. %Y)}]
${title}


JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 10 December 2015 11:00
·
#161538
0
Votes
Undo
Thanks Geraint!!!
It is working as wanted, just deleted a dash and added a dot.

[!m: ${startDate(%d. %b. %Y)}][!a:, ${startDate(%H:%M)}][m:  ${startDate(%d. - )} ${endDate(%d. %b. %Y)}]
${title}


I just have one final question. Can I change the short form of the month "Dez." into the full unshorted form "Dezember"?
Thursday, 10 December 2015 11:09
·
#161539
0
Votes
Undo

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 10 December 2015 12:46
·
#161540
0
Votes
Undo
Got it!

Thanaks for all your help!
:)
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.