inter date conversion with language support ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

inter date conversion with language support ??

Post by PHPycho »

Hello forums!!
Can anybody know a good class/functions that supports inter date conversion ie Y-m-d to m/d/y or any inter conversion with language support.
I have found a good one at
http://www.php.net/manual/en/function.date.php#76438 but it doesnt have language support.
Can anybody give suggestions/hints in modifying above function to have
language support ie if 02/01/2007 (d/m/Y) => F-D-Y in dutch the result would be : Januari-Maandag-2007.
Thanks in advance to all fo you.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Re: inter date conversion with language support ??

Post by JAM »

If that code works for you you should consider rewriting a small part of it. setlocale() is handy when changing language settings.
Post Reply