You can use Calendar
and Date
to get tomorrow's date in Swift:
main.swift115 chars4 lines
This code gets the current calendar and adds one day to the current date (Date()
). The resulting date is tomorrow's date, which is printed to the console.
gistlibby LogSnag