#PHP, 87 bytes
PHP, 87 bytes
<?=checkdate(($a=explode("-",$argn))[1],$a[2],$a[0])?date("jS F Y",strtotime($argn)):E;
Run as pipe with -F or test it online. Always prints a 4 digit year; fails for years > 9999.
no validity check, 35 bytes:
<?=date("jS F Y",strtotime($argn));
#PHP, 87 bytes
<?=checkdate(($a=explode("-",$argn))[1],$a[2],$a[0])?date("jS F Y",strtotime($argn)):E;
Run as pipe with -F or test it online. Always prints a 4 digit year; fails for years > 9999.
no validity check, 35 bytes:
<?=date("jS F Y",strtotime($argn));
PHP, 87 bytes
<?=checkdate(($a=explode("-",$argn))[1],$a[2],$a[0])?date("jS F Y",strtotime($argn)):E;
Run as pipe with -F or test it online. Always prints a 4 digit year; fails for years > 9999.
no validity check, 35 bytes:
<?=date("jS F Y",strtotime($argn));
#PHP, 87 bytes
<?=checkdate(($a=explode("-",$argn))[1],$a[2],$a[0])?date("jS F Y",strtotime($argn)):E;
Run as pipe with -F or test it online. Always prints a 4 digit year; fails for years > 9999.
no validity check, 35 bytes:
<?=date("jS F Y",strtotime($argn));