title: DateTime.TryParse for only a Time parameter?
body: <p>I am writing a service that calls a method at 4pm and 5am. I would like to keep these times from being hard coded and so I would like to have put them in my appconfig. </p>
  
  <p>Here is the code I have:</p>
  
  <pre><code>public bool CheckTime() 
          {
              DateTime startTime;
              DateTime endTime; 
  
              DateTime.TryParse(ConfigurationManager.AppSettings["ProcessingStartTime"], out startTime);
              DateTime.TryParse(ConfigurationManager.AppSettings["ProcessingEndTime"], out endTime);
  
              if(DateTime.Now.TimeOfDay.Equals(startTime) || DateTime.Now.TimeOfDay.Equals(endTime))
                  return true;
              else
                  return false;
          }
  </code></pre>
  
  <p>But, since I only want to store the time as a string (something as easy as "4:00pm") how do I parse and encapsulate JUST the time in a DateTime object? Or is there another object? I don't care about the date, it just has to be M-F of any given week of any given year.</p>
  
  <p>Thanks guys.</p>