wordpress: function to get wordpress date from any date string