Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocale(LC_TIME, 'spanish');
- echo utf8_encode(strftime("%d %B, %Y",strtotime($date)));
- echo date("d M, Y", strtotime($date));
- setlocale(LC_TIME, 'es_ES');
- // or (to avoid utf8_encode) : setlocale(LC_TIME, 'es_ES.UTF-8');
Add Comment
Please, Sign In to add comment