title: Change selected date format from DatePicker SwiftUI
body: <p>Is there a way to format the date?(from the position indicated by the arrow in the picture) I know it is formatted based on the locale but is there a way to format it myself?</p>
  
  <p><a href="https://i.stack.imgur.com/tNCJM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tNCJM.png" alt="enter image description here"></a></p>
  
  <pre><code>struct ContentView: View {
  
      @State private var selectedDate = Date()
  
      var body: some View {
          Form {
  
              DatePicker(selection: $selectedDate, in: ...Date(), displayedComponents: .date) {
                  Text("From*")
              }
          }
      }
  }
  </code></pre>