App that would open a url based on the current date in a browser I am looking for an app or a way how to automate opening a URL based on current date on the Android 7.0 phone:

On 2017-07-01 it would open the following url in a browser:

http://myserver.com/daily_reports/Day_20170701.htm


eventually 

http://myserver.com/weekly_reports/Week_2017_27.htm


Since the ISO number of the current week is 27.

Is there any solution for that out of the box?
With Tasker this is very easy. 

Setup a task like this:


Code &rarr; Run Shell:


Command: date +"%Y%m%d"
Store Output In: %date

App &rarr; Launch App &rarr; select your browser app:


Data: static URL part appended with %date as required. E.g. http://myserver.com/daily_reports/Day_%date.htm



For weekly URL, create an another task:


Code &rarr; Run Shell:


Command: date +"%Y_%V"
Store Output In: %week_no

App &rarr; Launch App &rarr; select your browser app:


Data: static URL part appended with %week as required. E.g. http://myserver.com/Weekly_reports/Week_%week_no.htm



You can save these two tasks, create a shortcut to them on your home screen and tap that shortcut to open the concerned URL. Or, you can setup a profile in Tasker for your requisite automation and attach those tasks to that.