Skip to main content

date

Function date 

Source
pub fn date(label: impl Into<String>) -> DatePrompt
Expand description

Pick a date with three editable segments (year / month / day). Navigate segments with ←/→, adjust with ↑/↓.

use cli_ui::prompt::date::date;

let birthday = date("When were you born?").run()?;