By Guest on Wednesday, 10 January 2018
Replies 9
Likes 0
Views 800
Votes 0
i actually have two questions. one, how can i just show the date (not the day) and, how do i only show the date once for non repeating events? currently the code below works great for multi day events. but shows the same day twice on single day events. please advise. screenshot attached.

${startDate(%A %B %e)}, ${endDate(%A %B %e)}
Hello,

Did you see:

https://www.jevents.net/frequently-asked-questions/custom-format-strings

try:
${startDate(%A %B %e)}[!a:, ${startDate(%l:%M %p)} - ${endDate(%l:%M %p)}][a: - All Day]
·
Thursday, 11 January 2018 09:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi TonyP,

Yes, I did see that link and tried the option you mentioned. that does not give me the muliti day events.(jan 23 - jan 25). it just gives the start date and time again. so i have the time twice. I just need the date range which the code i'm using does.

${startDate(%A %B %e)}, ${endDate(%A %B %e)}

however, for singe day events, i get the date twice. (see screenshot from previous post). new screenshot attached showing the method you sent...
·
Thursday, 11 January 2018 13:21
·
0 Likes
·
0 Votes
·
0 Comments
·
So as per the conditional fields of that article linked did you try using the m condition?

${startDate(%A %B %e)}, ${endDate(%A %B %e)}

to

${startDate(%A %B %e)}, [m:, ${endDate(%A %B %e)}]

That should only show the end DATE on multiday events.

Many thanks
Tony
·
Saturday, 13 January 2018 13:45
·
0 Likes
·
0 Votes
·
0 Comments
·
so that fixes the dates. thanks. however, now the formatting is off. screenshot attached. please advise.
·
Saturday, 13 January 2018 14:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Did you resolve your issue? Looking good here?

Many thanks
Tony
·
Tuesday, 16 January 2018 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony, no, not resolved. the dates are now right but the formatting of the events is now wrong. line wraps and such. I attached a screenshot to my previous post.
·
Tuesday, 16 January 2018 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I can't see that? But it looks like an issue with your template and line-height. Is that on a different page to what you showed?

What browser are you using?
·
Wednesday, 17 January 2018 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
page is here. https://eventmanagersllc.com/
all browsers have exact same issue. chrome, firefox, edge, IE
·
Wednesday, 17 January 2018 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue is the span tags you are using. You have put the code inside the icons which is wrong i.e.:

<span class="icon-calendar">Monday January 29</span>

should be:

<span class="icon-calendar"></span> Monday January 29

Many thanks
Tony
·
Thursday, 18 January 2018 15:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post