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