Skip to content

Instantly share code, notes, and snippets.

@ankitnetwork18
Created January 11, 2013 07:25
Show Gist options
  • Save ankitnetwork18/4508694 to your computer and use it in GitHub Desktop.
Save ankitnetwork18/4508694 to your computer and use it in GitHub Desktop.
wordpress: function to get wordpress date from any date string
/*
* function to get wordpress date
*/
function get_wp_date($date) {
return date('Y-m-d H:m:i', strtotime($date));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment