← Back to all TILs

Figure Out The Week Of The Year From The Terminal

unix Written September 16, 2019

Want to know what week of the year we are currently in? You can use the date utility to figure it out.

$ date +%V

The %V is a formatting directive with this description:

ISO week number, with Monday as first day of week (01..53)

source

Other posts like this