androidRecurrenceDatesString

Concatenates, if necessary, multiple RDATE/EXDATE lists and converts them to a formatted string which Android calendar provider can process.

Android expects this format: [TZID;]date1,date2,date3 where date is yyyymmddThhmmss (when TZID is given) or yyyymmddThhmmssZ.

This method converts the values to the type of startDate, if necessary:

  • DTSTART (DATE-TIME) and RDATE/EXDATE (DATE) → method converts RDATE/EXDATE to DATE-TIME with same time as DTSTART

  • DTSTART (DATE) and RDATE/EXDATE (DATE-TIME) → method converts RDATE/EXDATE to DATE (just drops time)

Return

formatted string for Android calendar provider

Parameters

dates

list of Temporals from RDATE or EXDATE properties

startDate

used to determine whether the event is an all-day event or not; also used to generate the date-time if the event is not all-day but the exception is