I can't find an accurate answer, but all I want to do is:
- user clicks a button and passes in a date in miliseconds
- my app opens the IOS default calendar app at that specific date and time.
I was using this code:
let date = Date(timeIntervalSince1970: TimeInterval(timeInMiliFromBackEnd/1000))
let interval = date.timeIntervalSince1970
let url = NSURL(string: "calshow:\(interval)")!
UIApplication.shared.openURL(url as URL)
The calendar app opens, however it opens in some random year (January 2066 @ 3pm).
Can anyone provide the swift 3 code for this?
Cheers~