Swift Date Plus1 Day

[Solved] Swift Date Plus1 Day | Swift - Code Explorer | yomemimo.com
Question : swift date plus1 day

Answered by : mobile-star

var dayComponent = DateComponents()
dayComponent.day = 1
let theCalendar = Calendar.current
let nextDate = theCalendar.date(byAdding: dayComponent, to: Date())
print("nextDate : \(nextDate)")

Source : | Last Update : Mon, 30 Mar 20

Answers related to swift date plus1 day

Code Explorer Popular Question For Swift