Posted by Ashish Pandey November-13-2013 7:23 AM C# C# 1 Reply(s) 1610 View(s) Ratings: Rate this: I need to create a log file daily in my working business hours. Basically I need two things:- 1. How can I create a new log file each day? The log file will be have the name in a format like MMDDYYYY.txt 2. How can I create it just after midnight in case it is running into all hours of the night?