Last active
December 22, 2015 05:39
-
-
Save Agneli/6425324 to your computer and use it in GitHub Desktop.
Function to convert date in ISO 8601 format (Y-m-d) to (d/m/Y) format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Data($date) { | |
$date_1 = explode("-", $date); | |
$date_2 = $date_1[2] . "/" . $date_1[1] . "/" . $date_1[0]; | |
return $date_2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment