DatePicker

Creates an instance that selects a Date with an unbounded range

DatePicker - iOS Light Mode Preview

Platform Compatibility

iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 10.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
@State var date = Date()

var body: some View {
  DatePicker("Select Date", selection: $date)
}

Found an issue or have a suggestion?

Created: June 4, 2025Updated: June 4, 2025