By Book on Wednesday, 10 January 2018
Replies 4
Likes 2
Views 1.2K
Votes 0
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
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.
·
7 years ago
·
2 Likes
·
0 Votes
·
0 Comments
·
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
·
2 Likes
·
0 Votes
·
0 Comments
·
Bams! Found it, I can use


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


·
7 years ago
·
2 Likes
·
0 Votes
·
0 Comments
·
Awesome!
·
7 years ago
·
2 Likes
·
0 Votes
·
0 Comments
·
View Full Post