Created
January 11, 2013 07:25
-
-
Save ankitnetwork18/4508694 to your computer and use it in GitHub Desktop.
wordpress: function to get wordpress date from any date string
This file contains hidden or 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 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