How can I change the format of a date from the command line?

后端 未结 6 1560
梦毁少年i
梦毁少年i 2020-12-19 17:04

What\'s the quickest way to convert a date in one format, say

2008-06-01

to a date in another format, say

6条回答
  •  悲哀的现实
    2020-12-19 17:39

    Reading the date(1) manpage would have revealed:

    -j   Do not try to set the date.  This allows you to use the -f flag
         in addition to the + option to convert one date format to another.

提交回复
热议问题