---
title: "FieldDatePickerStyle | Explore SwiftUI"
description: "A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/datepicker/fielddatepickerstyle"
meta:
  author: "Explore SwiftUI"
  "og:description": "A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_FieldDatePickerStyle%2Cdescription_A%2Bdate%2Bpicker%2Bstyle%2Bthat%2Bdisplays%2Bthe%2Bcomponents%2Bin%2Ban%2Beditable%2Bfield%2Ccategory_DatePicker%2Cimage_~L2FwaS9pbWFnZXMvNjUvdmFyaWFudHMvMzI0P3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz02NDAmaD00ODAmZj1wbmc%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L2RhdGVwaWNrZXIvZmllbGRkYXRlcGlja2Vyc3R5bGUi%2Cs_yavxXpft41UnVZFf.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "FieldDatePickerStyle | Explore SwiftUI"
  "twitter:description": "A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_FieldDatePickerStyle%2Cdescription_A%2Bdate%2Bpicker%2Bstyle%2Bthat%2Bdisplays%2Bthe%2Bcomponents%2Bin%2Ban%2Beditable%2Bfield%2Ccategory_DatePicker%2Cimage_~L2FwaS9pbWFnZXMvNjUvdmFyaWFudHMvMzI0P3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz02NDAmaD00ODAmZj1wbmc%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L2RhdGVwaWNrZXIvZmllbGRkYXRlcGlja2Vyc3R5bGUi%2Cs_yavxXpft41UnVZFf.png"
  "twitter:title": "FieldDatePickerStyle | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **FieldDatePickerStyle**

A date picker style that displays the components in an editable field

![FieldDatePickerStyle - Preview Not Available](https://exploreswiftui.com/api/images/65/variants/324?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

macOS 10.15+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/datepickerstyle/field)

```
 @State var date = Date()

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

### **Found an issue or have a suggestion?**

Created: June 4, 2025Updated: August 6, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More DatePicker Components **

[**View all **](https://exploreswiftui.com/library/datepicker)

![Future DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/68/variants/18?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Future DatePicker**

Creates an instance that selects multiple dates on or after some start date

![MultiDatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/67/variants/203?v=1790073478842&r=2&w=412&q=75&f=webp)

### **MultiDatePicker**

A control for picking multiple dates.

![DatePicker Colors - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/66/variants/245?v=1790073478842&r=2&w=412&q=75&f=webp)

### **DatePicker Colors**

Customizing the colors of the date picker

![StepperFieldDatePickerStyle - macOS - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/64/variants/96?v=1790073478842&r=2&w=412&q=75&f=webp)

### **StepperFieldDatePickerStyle**

A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component

![WheelDatePickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/63/variants/73?v=1790073478842&r=2&w=412&q=75&f=webp)

### **WheelDatePickerStyle**

A date picker style that displays each component as columns in a scrollable wheel

![GraphicalDatePickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/62/variants/420?v=1790073478842&r=2&w=412&q=75&f=webp)

### **GraphicalDatePickerStyle**

A date picker style that displays an interactive calendar or clock

![Hour Minute Seconds DatePicker - watchOS - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/61/variants/181?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Hour Minute Seconds DatePicker**

A DatePicker for just hour, minute, and second.

![Future DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/60/variants/155?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Future DatePicker**

Creates an instance that selects a Date in a closed range

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Label Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/149/variants/472?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Label Styles**

Sets the style for labels within this view.

![Collapse Sidebar Sections by Default - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/259/variants/2039?v=1792566366133&r=2&w=412&q=75&f=webp)

### **Collapse Sidebar Sections by Default**

Collapses the section in the sidebar by default.

![TabSection - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/157/variants/618?v=1790073478842&r=2&w=412&q=75&f=webp)

### **TabSection**

A container that you can use to add hierarchy within a tab view.

![Disabled Toolbar Vertical Behavior - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/246/variants/1636?v=1790277107518&r=2&w=412&q=75&f=webp)

### **Disabled Toolbar Vertical Behavior**

Disables the vertical bar.

![UIKit Label Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/10/variants/45?v=1790073478842&r=2&w=412&q=75&f=webp)

### **UIKit Label Colors**

![Color Variants - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/9/variants/209?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Color Variants**

HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles

![Music Picker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/232/variants/727?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Music Picker**

Presents a music picker to select items from the Apple Music catalog and the user’s music library.

![TextFieldLink - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/76/variants/192?v=1790073478842&r=2&w=412&q=75&f=webp)

### **TextFieldLink**

A control that requests text input from the user when pressed

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#webpage","@type":"WebPage","dateModified":"2025-08-06T10:28:52.547Z","datePublished":"2025-06-04T17:43:29.686Z","description":"A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples.","name":"FieldDatePickerStyle","url":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle","breadcrumb":{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/datepicker/fielddatepickerstyle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#article","dateModified":"2025-08-06T10:28:52.547Z","datePublished":"2025-06-04T17:43:29.686Z","description":"A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples.","headline":"FieldDatePickerStyle","inLanguage":"en-US","name":"FieldDatePickerStyle","thumbnailUrl":"https://exploreswiftui.com/api/images/65/variants/324?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/datepickerstyle/field","codeSampleType":"full example","description":"A date picker style that displays the components in an editable field. Learn how to use FieldDatePickerStyle in SwiftUI with visual code examples.","name":"FieldDatePickerStyle SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":" @State var date = Date()\n\n    var body: some View {\n        DatePicker(\"Select Date\", selection: $date)\n            .datePickerStyle(.field)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"DatePicker"},{"@type":"Thing","name":"FieldDatePickerStyle"}]},{"@id":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"DatePicker","item":"https://exploreswiftui.com/library/datepicker","position":2},{"@type":"ListItem","name":"FieldDatePickerStyle","item":"https://exploreswiftui.com/library/datepicker/fielddatepickerstyle","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/65/variants/324?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/65/variants/324?v=1790073478842&r=2"}]}
```