title: How to create a counter that resets to zero at the end of the day in c#?
body: <p>I have created a bulk mailer software as part of a project. I have added a counter to count the number of mails sent daily and once the limit is reached the mails are not sent. Now I want to automatically reset the counter at the end of the day. </p>