Components / DateTimePicker

DateTimePicker

A date and a time over one value.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn date_time_picker() -> impl View {
    let month = Date::new(2026, 11, 1).unwrap_or_else(|| Date::from_days(0));
    let at = State::new(Time::new(14, 0).map(|time| DateTime { date: month, time }));
    DateTimePicker::new(at.binding(), month).label("Starts")
}

Open in the playground, with every example →

Full API of DateTimePicker →