diff --git a/src/date_formatter.php b/src/date_formatter.php new file mode 100644 index 0000000..75a2eae --- /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'); + } + + if ($checkDate) { + $inputMod = strtotime($input); + return date('l, F jS Y', $inputMod); + } else { + return ""; + } + } + ?> \ No newline at end of file