title: Validate Date format using C# 4.0
body: <p>In our existing website code I encountered the following piece of code:</p>
  
  <pre><code>private static bool IsDate(string inputText)
          {
              try
              {
                  DateTime.Parse(inputText);
                  return true;
              }
              catch
              {
                  return false;
              }
          }
  </code></pre>
  
  <p>Can this piece of code be optimized by using .NET 4.0 framework feature?</p>