How can I run my windows service once in 12 weeks? I implemented it using timers, and I am assigning the timer interval as (12*7*24*60*60*1000 milliseconds). Is there any issue if i use the timer for such a duration (12*7*24*60*60*1000 milliseconds).
If it causes an issue please suggest an alternate way to run my windows service once in every 12 weeks.
I think the better approach will be comparing dates.
with one hour interval.
store the current date.
check the difference between current
date and stored date, if it is 12 do
operations. Also update the current
date.