Home » Javascript » What is the best way to create a day counter in a google doc?

What is the best way to create a day counter in a google doc?

Posted by: admin June 30, 2018 Leave a comment

Questions:

Q: What is the best way to create a day counter in google docs?

I have found the following links ->

Use script editor:
https://webapps.stackexchange.com/questions/78347/how-to-calculate-a-date-in-google-documents

Use Triggers:
https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers

I would like to use the script above to create a timer of days. I will use it to track a project since the day it started until today.
Also, I would like to use a trigger to refresh the code so that the days counter will be updated each day (Or every time the doc is opened ).

Please, if you have a better, faster way to achieve the above that would be great!

Thanks for the help.

Answers: