title: Convert different format of DateTime to specific String format
body: <p>Im Getting  <code>System.datetime.now</code> from different Machine .Each system having different datetime format as a mension below</p>
  
  <pre><code>16-Oct-12 7:25:22 PM
  16/10/2012 7:10:47 PM [DD/MM/YYYY]
  10/16/2012 7:10:51 PM [MM/DD/YYYY]
  </code></pre>
  
  <p>How To convert Different format of <code>DateTime</code> to specific String format ?</p>
  
  <pre><code>string sDateTime = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss tt"); 
  </code></pre>