I am getting dates from an api like this:
["2019-07-12 12:43:00", "2019-07-09 12:57:35", "2019-07-09 12:04:33", "2019-07-05 14:32:32", "2019-07-04 17:50:23", "2019-07-02 12:12:30", "2019-07-01 18:09:28"]
but what I want is I want to remove the time from this array of dates to get the dates like this
I want my desired result like this
["2019-07-12", "2019-07-09", "2019-07-09", "2019-07-05", "2019-07-04", "2019-07-02", "2019-07-01"]
The reason why I want because I need to show the events on FSCalendar
. How can I do this?