I have Array ;
var mydates : [String] = []
let startDate = "2018-03-01"
let endDate = "2018-03-03"
And I have 3 variable , startDate
, endDate
, dates
, i want to append that variables, like;
if startDate
= 2018-03-01, and endDate
= 2018-03-03
will be add dates variable inside = "2018-03-01,2018-03-02,2018-03-03" between all dates from start and end dates.
How can i do it in swift 2 any idea ?