Reputation: 49
example Day of the year: 305
how to get the date in dd-mm-yyyy format
Upvotes: 2
Views: 65
Reputation: 189377
If you have GNU date (as implied by the linux tag) you can do
date
date -d "1/1 + 304 days" +%d-%m-%Y