Hi, I would like to add a function to my wikia where I would input a date and the counter would count the number of days have passed since that date, excluding weekdays. For example, I input the date December 1, 2017, and I want it to output 4, because 4 weekdays have passed since that date.
So, what I think you mean is you want to exclude weekends; correct? Do you want this counter to be interactive, as in, users enter the date in a text field and the answer is displayed? Or, do you want the date to be static, as in, the date is set for each instance of the counter? If the latter, do you need something that is constantly updated (and thus always correct) or would something less accurate suffice? These are all questions you must answer in order to determine the best solution for you.
Something static is what I am going for. For example, the age counter in wiki sites where you just input the date of a person's birthdate and it displays the age of the person currently. I want to be able to just input a specific date, and it will display the number of days since that date, excluding the weekends.