SyntaxFix
Write A Post
Hire A Developer
Questions
Use date_create and date_format
date_create
date_format
Try this.
function formatDate($input, $output){ $inputdate = date_create($input); $output = date_format($inputdate, $output); return $output; }