Skip to content

Instantly share code, notes, and snippets.

@Agneli
Last active December 22, 2015 05:39
Show Gist options
  • Save Agneli/6425324 to your computer and use it in GitHub Desktop.
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.
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