Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

add months to date swift

Swift 5:

let months: Int = 3
let date: Date = Date()
let calendar: Calendar = Calendar.current
let nextDate: Date? = calendar.date( byAdding: Calendar.Component.month, value: months, to: date )
 
PREVIOUS NEXT
Tagged: #add #months #date #swift
ADD COMMENT
Topic
Name
9+5 =