Answers for "swift current date plus day"

1

swift date plus1 day

var dayComponent    = DateComponents()
dayComponent.day    = 1
let theCalendar     = Calendar.current
let nextDate        = theCalendar.date(byAdding: dayComponent, to: Date())
print("nextDate : \(nextDate)")
Posted by: Guest on March-23-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language