title: How to convert date dd/mm/yyyy hh:mm:ss AM to mm/dd/yyyy hh:mm:ss: am throwing invalid cast exception
body: <p>I have a property (<code>string</code>) named as <code>cdate</code>  in this format <br/>
  <code>25/01/2019 12:41:50 AM</code> <br/> </p>
  
  <p>I want my output to look like this <br/> <code>01/25/2019 12:41:50 AM</code>
  <br/> My code is throwing an invalid cast exception error.</p>
  
  <p>I am a rookie in <code>C#</code> <br/></p>
  
  <p>Already I have tried this but it's not working<br/>
  <code>cdate.ToString("MM/dd/yyyy hh:mm:ss")</code> </p>