diff --git a/crates/nu-command/src/strings/format/date.rs b/crates/nu-command/src/strings/format/date.rs index 0dd087699..84b3ed5f9 100644 --- a/crates/nu-command/src/strings/format/date.rs +++ b/crates/nu-command/src/strings/format/date.rs @@ -25,6 +25,7 @@ impl Command for FormatDate { .input_output_types(vec![ (Type::Date, Type::String), (Type::String, Type::String), + (Type::Nothing, Type::Table(vec![])), ]) .allow_variants_without_examples(true) // https://github.com/nushell/nushell/issues/7032 .switch("list", "lists strftime cheatsheet", Some('l'))