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