SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a regular expression or some manual string fiddling, but I think I prefer:
date("d/m/Y", strtotime($str));