First, I’m not using a calendar component.
I’m building an upcoming events screen. Below the event name, I want to display ‘EventDate’ ‘EventStartTime’ - ‘EventEndTime’
I have those three properties in my Events collection.
For some events, there will be no end time.
I’m running into several problems with this.
First, is it best to put all 3 magic text elements into one text field? Something like:
‘EventDate’ ‘EventStartTime’ - ‘EventEndTime’
This is the cleanest way, but I don’t know how to make the dash disappear when there is no end time.
Do I create 3 separate text fields on the same line? I’m having difficulty properly spacing those 3 fields, and I still have problem of a visible dash when there’s no end time.
Someone please help. This should be simple, but I’m struggling.