title: how to get php date format from given string
body: <p>How to get date format of given string, string contain a valid date
  I am try to import data from csv file, and that csv files are exported for backup
  but there are so many different type of date format and in some case when i try to convert string to date it throwing me an error </p>
  
  <blockquote>
    <p>ex: 04/08/2010 10:22 am</p>
  </blockquote>
  
  <p>some time this <strong>type</strong> of format throwing me error </p>
  
  <pre><code>Error 500: DateTime::__construct(): Failed to parse time string
  </code></pre>