# DatePickerSelectedValueChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/date_time_pickers/struct-datepickerselectedvaluechangedeventargs/

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

```rust
struct DatePickerSelectedValueChangedEventArgs
```

Defines the argument passed when the `SelectedDate` of a date picker
changes.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/date_picker_selected_value_changed_event_args.rs#L6)

## Members

- [`new`](#function-new)
- [`new_date`](#function-new_date)
- [`old_date`](#function-old_date)

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

### new

```rust
fn new(old_date: Option<DateTimeOffset>, new_date: Option<DateTimeOffset>) -> Self
```

Creates args for a change of the selected date.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/date_picker_selected_value_changed_event_args.rs#L13)

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

### new_date

```rust
fn new_date(self: &Self) -> Option<DateTimeOffset>
```

The selected date after the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/date_picker_selected_value_changed_event_args.rs#L19)

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

### old_date

```rust
fn old_date(self: &Self) -> Option<DateTimeOffset>
```

The selected date before the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/date_time_pickers/date_picker_selected_value_changed_event_args.rs#L25)

## 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`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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