Guest User

Untitled

a guest
Feb 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2. $sDate = '01-01-2012';
  3. $sFormat = 'dd-MM-yyyy';
  4.  
  5. $oDate = new Zend_Date(strtotime($sDate), null, 'en_EN');
  6. return $oDate->toString($sFormat, $sDate);
  7.  
  8. // Output 2010-01-01
  9. ?>
Add Comment
Please, Sign In to add comment