mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
695 B
695 B
title | layout | version |
---|---|---|
date format | command | 0.59.1 |
Format a given date using a format string.
Signature
> date format (format string) --list
Parameters
format string
: the desired date format--list
: lists strftime cheatsheet
Examples
Format a given date using the default format (RFC 2822).
> "2021-10-22 20:00:12 +01:00" | date format
Format a given date using a given format string.
> date format '%Y-%m-%d'
Format a given date using a given format string.
> date format "%Y-%m-%d %H:%M:%S"
Format a given date using a given format string.
> "2021-10-22 20:00:12 +01:00" | date format "%Y-%m-%d"