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