Skip to content

Instantly share code, notes, and snippets.

@davidverhage
Created August 15, 2015 22:03
Show Gist options
  • Save davidverhage/09607049daee34240c88 to your computer and use it in GitHub Desktop.
Save davidverhage/09607049daee34240c88 to your computer and use it in GitHub Desktop.
Date snippet v1
/**
* A simple snippet to return a stored date from mysql to human readable form
*/
$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment