title: Unable to convert datetime format to 00:00:00 instead of 12:00:00?
body: <p>I know this might be duplicate but code is still not working for me in c#.</p>
  
  <blockquote>
    <p>I want to convert datetime format to 00:00:00 instead of 12:00:00</p>
  </blockquote>
  
  <p>I tried like </p>
  
  <pre><code>   cmd.Parameters.Add(new SqlParameter("@fromDate", dtFromDate.Date.ToString("yyyy-MM-dd HH:mm:ss")));
  </code></pre>
  
  <p>but not working for me :(</p>
  
  <p>please correct me. </p>