diff --git a/src/date_formatter.php b/src/date_formatter.php new file mode 100644 index 0000000..65ed141 --- /dev/null +++ b/src/date_formatter.php @@ -0,0 +1,25 @@ + 2 && intval($check[0]) < 1970) { + $legEsc = new DateTime($input); + return date_format($legEsc, 'l, F jS Y'); + } +//strtotime allows for varied inputs +if ($checkDate) { + $inputMod = strtotime($input); + return date('l, F jS Y', $inputMod); + } else { + return ""; + } +} +?>