Add 30 minutes to the date in iOS swift

Solution:

The below code is used to add the 30 minutes to the current date and time.

let date = startDate.addingTimeInterval(30* 60)

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift