title: How to: parse a string 'mm/yyyy' into a date in PHP5.3?
body: <p>I come from Java &amp; C# worlds, and just wondering how do I parse a string formatted as <code>mm/yyyy</code> into a date in PHP 5.3.</p>
  
  <p>I've tried with the following:</p>
  
  <pre><code>date_parse_from_format('mm/yyyy', '05/2013');
  </code></pre>
  
  <p>Then the returned array complains with errors:</p>
  
  <pre><code>[2] =&gt; Unexpected data found.
  [5] =&gt; The separation symbol could not be found
  [7] =&gt; Data missing
  </code></pre>
  
  <p>How to parse to date a string formatted as <code>mm/yyyy</code> in PHP 5.3?</p>
  
  <hr>
  
  <p>Here is the complete <code>var_dump</code>:</p>
  
  <pre><code>Array
  (
      [year] =&gt; 2013
      [month] =&gt; 20
      [day] =&gt;
      [hour] =&gt;
      [minute] =&gt;
      [second] =&gt;
      [fraction] =&gt;
      [warning_count] =&gt; 0
      [warnings] =&gt; Array
          (
          )
  
      [error_count] =&gt; 3
      [errors] =&gt; Array
          (
              [2] =&gt; Unexpected data found.
              [5] =&gt; The separation symbol could not be found
              [7] =&gt; Data missing
          )
  
      [is_localtime] =&gt;
  )
  </code></pre>