I have the following date: 2010-04-19 18:31:27. I would like to convert this date to the dd/mm/yyyy format.
You can use a regular expression or some manual string fiddling, but I think I prefer:
date("d/m/Y", strtotime($str));
1.4m articles
1.4m replys
5 comments
57.0k users