calculate the days between two dates include from date and todate in swift ios code example
Example: swift date difference in days
let diffInDays = Calendar.current.dateComponents([.day], from: dateA, to: dateB).day
let diffInDays = Calendar.current.dateComponents([.day], from: dateA, to: dateB).day