I want to get the date of a day in a week where the week is given by a week number. So for instance, I have monday of week 34 2020 and I want to get 17/08/20 as output. Is there an easy way to do this in the Shortcuts app or apps like Toolbox Pro? Thanks for any help!
I’ve made it in vanilla Shortcuts because I found the idea interesting and wanted to come up with a solution.
You can find the shortcut here: https://www.icloud.com/shortcuts/f684a6f94ccf4c03b1ebf31f5ebe877c
I’ve put many comments inbetween to explain the different parts of the shortcut.
You can enter your required text in the first text action. You can also replace that action with any other input method, but make sure that the following Match Text action gets the input passed in.
You can enter anything since there is no range check for the week number and year. Everything from 0 to 2^32 - 1 is possible. Negative numbers don’t work, because then the parsing fails.
I hope it helps. If you have any further questions, just ask!
Another take on this…
Thank you all for your help! I will definitely look through your shortcuts to see what else I can also learn from the way you solved the problem. Thanks again!