![]() |
The hard way on generating spanish dates... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: The hard way on generating spanish dates... (/showthread.php?tid=20240) |
The hard way on generating spanish dates... - El Forum - 07-02-2009 [eluser]gvillavizar[/eluser] This is just to let you know of how I displayed a spanish date in the hard way today. All this was on my controller as the corresponding item was inside a foreach loop: Code: <div<?php echo $row; ?>> This would produce something like: Quote:gvillavizar dijo el Jueves 02 de Jul del 2009 a las 00:00:00am Any easier way to do this? (Please note, as I already got the desired result, this is just for share and discuss). The hard way on generating spanish dates... - El Forum - 07-02-2009 [eluser]xwero[/eluser] use the strftime function Code: setlocale('es_ES'); // i guessed the abbreviation so this can be wrong |