title: converting dd/MM/yyyy hh:mm:ss to dd-MMM-yyyy hh:mm:ss in c# giving error : string is not recognized as valid datetime
body: <p>I have also used Parse.Exact with cultureInfo invariant culture nothing seems to be work. only when the value is like "27-Mar-2020" then only it is working please find me a solution. </p>
  
  <pre><code>birthdate = string.IsNullOrEmpty(DS.Tables[0].Rows[i][Values[j]].ToString()) ? null : (DateTime.Parse((DS.Tables[0].Rows[i][Values[j]]).ToString())).ToString("dd-MMM-yyyy hh:mm:ss");
  </code></pre>