disabling enabling internet access on a specific date using timer
<p>In my project I can block internet access completely in specific times but in a current date.
I did this by using a timer. This timer checks the start time and end time and also controls in every 5 seconds to disable and enable internet connection by using the start time and end time given by user. Now I want to do the same thing in different days not only for the current date. I want to check every day in every 5 seconds of a day by timer if a disable/enable time interval is given by the user for that specific date.</p>

<pre><code>      if (currentDate == chosenDate)
        {
            if ((currenttime &gt;= starttime) &amp;&amp; (currenttime &lt;= endtime))
            {
                timerForHour.Enabled = true;
                if (isConnectedToNetwork)
                {
                    findNetworkName();
                    Disable(networkName);
                }

            }
            else
            {
                exitFlag = true;
                Enable(networkName);
            }

        }

        else if(currentDate!=chosenDate)
        {

        }
</code></pre>

<p>This is my code what am I going to do in this else if section?. Thanks. </p>
