Guest User

Untitled

a guest
Dec 15th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. setlocale(LC_TIME, 'spanish');
  2. echo utf8_encode(strftime("%d %B, %Y",strtotime($date)));
  3.  
  4. echo date("d M, Y", strtotime($date));
  5.  
  6. setlocale(LC_TIME, 'es_ES');
  7.  
  8. // or (to avoid utf8_encode) : setlocale(LC_TIME, 'es_ES.UTF-8');
Add Comment
Please, Sign In to add comment