That would just show the start to end time if the start time is midnight as the day and the month - day and month. Might be worth sorting through the forum to see if you can find a post on checking dates via a template widget.
If you want to check the start time you can see it in the logs. In mine it looks like:
CalendarTimeStart2 changed from 2019-11-17T10:00:00.000-0700 to 2019-11-20T18:30:00.000-0700
Thatâs what I am after.
My assumption is, that if it starts at midnight, itâs an all day event (instead of the previous comparison if the end date is bigger than the start Date).
If so, I want to display just the start and end day.
Sorry for late reply⊠have been a little busy these days.
If I remember correct you can adjust this by modifying the date pattern:
E.g. date:"HH.mm." gives you the time as 24hrs. For the weekdays Iâm not sure as this no longer part of my customized panel. But you can have a look here AngularJS
im very confused. Hope somebody can help me.
The widget works fine with my google calendar.
But I have only one Problem:
The start and the end time of my events are one hour later in the widget then in my google calendar.
So I donât know how to solve thisâŠ!? I think my caldavio/google settings are rightâŠ!?
Maybe the Calendar widget configuration? When I doesnât select an Item the widget shows 01:00 oâclock before.
The issue is true for events passing the end of the month as well.
EDIT
It seems that just the first âdigitâ (day) will be compared:
This case is true for a event from July 11th 2020 until August 2nd of 2020: <div ng-if="((itemValue('CalStart11') | date:'dd.MM.yyyy') > (itemValue('CalEnd11') | date:'dd.MM.yyyy'))
and without the format it seems to be working, but of course this is always true for an event: <div ng-if="((itemValue('CalStart11')) < (itemValue('CalEnd11')))"