title: Unable to parse date <inputdate> using 'M/d/yy' (M <> d) in magento
body: <p>I m stuck with saving my post date in magento.when i try to save date it gives error like </p>
  
  <p><a href="https://i.stack.imgur.com/eh6AI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eh6AI.png" alt="enter image description here"></a></p>
  
  <p>I have used below code to parse date for save.</p>
  
  <pre><code>$date1 = Mage::app()-&gt;getLocale()-&gt;date($data['valid_upto'], Zend_Date::DATE_SHORT);
              $validdate = $date1-&gt;toString('YYYY-MM-dd HH:mm:ss');
  </code></pre>
  
  <p>one thing that same code is using for my other site for same functionality its working fine.</p>
  
  <p>can any one have idea why this happen.</p>