Using the command
$ date +%j
gives an output of the day of the year (001-366). However I need to use the day of the current year as an input format i.e.
$ date --date='066 day' +%F
Which for year 2021 I would expect 2021-03-07
as the output. Instead I get 2021-05-13
. Does anyone know what is going on and if there is a way to get what I want using date
.