Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spanish date
#8
Yes Zegnåt. i have tried it too, but the result is the same.
I have created a php and several tests, and always the result is in english (:.

Code:
<?php

$Fecha_num="2007-08-12";

/* Windows con apache
setlocale(LC_TIME, 'Spanish'); */

/* Apache con linux */
/* setlocale(LC_TIME, 'es_ES'); */


// setlocale(LC_TIME, 'de_DE');
// echo strftime('%A, %d. %B %Y');  


/* setlocale(LC_TIME, 'es_MX'); */

setlocale(LC_TIME, 'es_ES');
echo $fecha=strftime('%d %B %Y',strtotime($Fecha_num));

?>

Regards

Edit: i have installed apache2-mpm-prefork
Reply


Messages In This Thread
Spanish date - by cumbe - 2010-01-23, 20:02:30
Spanish date - by Zegnåt - 2010-01-23, 22:00:33
Spanish date - by cumbe - 2010-01-23, 23:26:27
Spanish date - by internet54 - 2010-01-24, 00:56:26
Spanish date - by cumbe - 2010-01-24, 20:54:17
Spanish date - by Zegnåt - 2010-01-25, 02:10:49
Spanish date - by Nijikokun - 2010-01-25, 04:56:10
Spanish date - by cumbe - 2010-01-26, 04:12:25
Spanish date - by internet54 - 2010-01-26, 04:58:55
Spanish date - by cumbe - 2010-01-26, 05:13:26



Users browsing this thread: 1 Guest(s)