nushell/old_nushell/docs/commands/date-format.md
Fernando Herrera fdce6c49ab engine-q merge
2022-02-07 19:11:34 +00:00

467 B

date format

Format a given date using the given format string.

Usage

> date format <format> {flags} 

Parameters

  • <format> strftime format

Flags

  • -h, --help: Display this help message
  • -t, --table: print date in a table

Examples

Format the current date

> date now | date format '%Y.%m.%d_%H %M %S,%z'

Format the current date and print in a table

> date now | date format -t '%Y-%m-%d_%H:%M:%S %z'