Wednesday, 10 January 2018
  4 Replies
  1.2K Visits
0
Votes
Undo
Hi,

this might be easier. In my custom details view I have:

{{Startdatum:STARTDATE}}{{Startzeit:STARTTIME#, %s#}} — {{Enddatum:ENDDATE}}{{Endzeit:ENDTIME#, %s#}}

which shows something like

Freitag, 02. Februar 2018, 19 Uhr — Freitag, 02. Februar 2018, 21 Uhr

Is it possible to hide the second date when it´s the same day that it reads:

Freitag, 02. Februar 2018, 19 Uhr — 21 Uhr


thanks!

Toni
7 years ago
·
#196527
0
Votes
Undo
Hello,

Please see:

https://www.jevents.net/frequently-asked-questions/time-formatting-in-jevents

{{Startdatum:STARTDATE}}{{Startzeit:STARTTIME;%A, %d %B %Y}} — {{Enddatum:ENDDATE}}{{Endzeit:ENDTIME;%A, %d }}

Should allow for refinding the startend day.

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!

7 years ago
·
#196586
0
Votes
Undo
Dear Tony,

thanks for your reply. Unfortuantely I have to ask again. I cannot find how to build the condition.Is there some if statement when using custom templates?
I would look for something like:

if ( {{Startdatum:STARTDATE}} !== {{Enddatum:ENDDATE}} ) {
{{Startdatum:STARTDATE}}{{Startzeit:STARTTIME}} —
{{Enddatum:ENDDATE}}{{Endzeit:ENDTIME}}
} else {
{{Startdatum:STARTDATE}}{{Startzeit:STARTTIME}} —
{{Endzeit:ENDTIME}}
}

the else removes the Enddate as it the same as start.

Thanks for your help! – always!

toni
7 years ago
·
#196587
0
Votes
Undo
Bams! Found it, I can use


{{Enddatum des mehrtägigen Events:MULTIENDDATE#— %s#}}


:D
7 years ago
·
#196612
0
Votes
Undo
Awesome!

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!

  • Page :
  • 1
There are no replies made for this post yet.