swift calendar current date code example Example: swift 5 get current date date Swift 5 let currentDate = Date()