# MaterialDateInputFormat

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/struct-materialdateinputformat/

**struct** · [`ferroui-themes-material`](/docs/0.5.0/api/ferroui-themes-material/) · v0.5.0

```rust
struct MaterialDateInputFormat
```

Native date input always uses two-digit month/day and four-digit year in the
culture's order. Eight underlying digits are displayed with two delimiters.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L152)

## Members

- [`for_culture`](#function-for_culture)
- [`pattern`](#function-pattern)
- [`digits`](#function-digits)
- [`format_digits`](#function-format_digits)
- [`extract_digits`](#function-extract_digits)
- [`parse_digits`](#function-parse_digits)

<a id="function-for_culture"></a>

### for_culture

```rust
fn for_culture(info: &DateTimeFormatInfo) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L157)

<a id="function-pattern"></a>

### pattern

```rust
fn pattern(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L188)

<a id="function-digits"></a>

### digits

```rust
fn digits(self: &Self, date: DateTime) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L199)

<a id="function-format_digits"></a>

### format_digits

```rust
fn format_digits(self: &Self, digits: &str) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L209)

<a id="function-extract_digits"></a>

### extract_digits

```rust
fn extract_digits(self: &Self, text: &str) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L225)

<a id="function-parse_digits"></a>

### parse_digits

```rust
fn parse_digits(self: &Self, digits: &str) -> Option<DateTime>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/date_picker_state.rs#L235)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Equivalent<K>`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
