How can I get current calendar start and end date?
From the screenshot, I need to get Sep 24 2017 and Nov 4 2017..
thanks
]1
var dateArray = [Date]()
for cell:FSCalendarCell in calendar.visibleCells() {
if cell.isPlaceholder {
dateArray.append(calendar.date(for: cell)!)
}
}
calendar.select(dateArray.min())
calendar.select(dateArray.max())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With