Page 1 of 1

inter date conversion with language support ??

Posted: Sun Feb 03, 2008 12:40 am
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.

Re: inter date conversion with language support ??

Posted: Sun Feb 03, 2008 2:52 am
by JAM
If that code works for you you should consider rewriting a small part of it. setlocale() is handy when changing language settings.