On WordPress, I created a custom meta field for input dates.
But I need return the dates in my current language. I try to use setlocale
with no effect:
setlocale (LC_ALL, "de_DE");
$user_ID = get_current_user_id();
$date = strtotime( get_user_meta($user_ID, 'subscription', true)); // return 1434499200
$inscricao = date("F Y", $date); // return June 2015
You might want to use
strftime
For example:
Found a solution: