Here Mudassar Ahmed Khan has explained with an example, how to build a simple Windows Service that runs periodically at regular intervals and as well as once a day at specific (certain) time of day using C# and VB.Net in Visual Studio 2013, 2015 and 2017 versions.
The Windows service will support two modes.
1. Interval mode: where Windows Service execute a task at regular intervals after some delay.
2. Daily mode: where the Windows Service will execute a task at specific (certain) time of day.