how to set data to date in swift 5 code example Example: How to create a Swift Date object let currentDateTime = Date()