You may or may not be surprised to know that PHP supports it natively.
php5 -r 'echo idate("B");'
http://php.net/manual/en/function.idate.php php5 -r 'echo idate("B");'
http://php.net/manual/en/function.idate.php