I use the calendar lib from the forum. I have a problem with ALL DAY events.
When I add in the google calendar an all day event (with the google calendar app) , for ex.
day 10.6.2017, then the lib function give back startdate: 09.06.2017 and enddate: 10.06.2017
The flag all day seems not to be returned.
When I add in the google calendar an all day event (with the google calendar app) , for ex.
day 10.6.2017, then the lib function give back startdate: 09.06.2017 and enddate: 10.06.2017
The flag all day seems not to be returned.
B4X:
Datum = DateTime.DatetimeParse("09.06.2017","00:01")
DatumEnd = DateTime.Add(DateTime.Dateparse("10.06.2017"),0,0,1)
mycalendarlist = cal.GetListofEventsforCalendarBetweenDates(value,Datum,DatumEnd)
'Each event is made up of the following 7 elements and the list repeats in blocks of 7 for every events
'(0) Event Name
'(1) Description
'(2) Start Time
'(3) End Time
'(4) Location
'(5) All day indicator, 1= all day, 0= not
'(6) Event_ID
Dim strTime As String
For x = 0 To mycalendarlist.Size-1 Step 7
Log(mycalendarlist.Get(x) & " " & mycalendarlist.Get(x + 5))
Log(DateTime.Date(mycalendarlist.Get(x + 2)) & " " & DateTime.Date(mycalendarlist.Get(x + 3)))
Next
Last edited: