How to get the week number of year

Hi Dan,

From what I can see there is not a built in inspector to provide the week number. @AlanM, @Aram, please correct me if I’m wrong.

Judging from the wikipedia article I read on calculating week dates, this is probably not something that we want to try and roll our own relevance solution with either. Because it looks like the calculation involves a lookup table factoring in the ordinal date and leap years. And you have to decide if a week starts on a Sunday or a Monday. Etc.

I assume you are on Windows since if you were on Linux you could just get the output of the date command as you posted. I did a search online and it looks like the most straightforward solution is using PowerShell as detailed here: For example, running powershell get-date -UFormat %V returns 22, which matches https://whatweekisit.com.

That being said, anything that runs a script or utility would have to be done in actionscript and not relevance.So that may be a pain depending on your use case.