title: Error with ToString has no method that takes one argument in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1833054/how-can-i-format-a-nullable-datetime-with-tostring">How can I format a nullable DateTime with ToString()?</a><br>
    <a href="https://stackoverflow.com/questions/5216486/no-overload-for-method-tostring-takes-1-arguments-error-occur-while-format">‘No overload for method &#39;ToString’ takes ‘1’ arguments&#39; error occur While Formating Datetime Field To String ON “dd-MM-yyyy” format</a>  </p>
  </blockquote>
  
  
  
  <p>I am using the following:</p>
  
  <pre><code>@Model.Modified.ToString("dd/MM/yyyy htt")
  </code></pre>
  
  <p>But it gives me a message saying </p>
  
  <blockquote>
    <p>No overload method for ToString takes one argument</p>
  </blockquote>
  
  <p>Does anyone have any idea what could be wrong?</p>