Re[2]: [PHP] days of week

2004-03-18 Thread Richard Davey
Hello Diana, Thursday, March 18, 2004, 12:00:55 PM, you wrote: DC yes but I want it in various languages. Not in your *original* post you didn't (the one that I replied to). Besides, it wouldn't be that hard to modify to make it happen. -- Best regards, Richard Davey

Re: Re[2]: [PHP] days of week

2004-03-18 Thread Diana Castillo
I didnt want to hard code the names , so we made this up: function getDayName($day, $lang=''){ if ($locale = Language::getLocale($lang)) { setlocale(LC_TIME, $locale); } $sunday = strtotime('1 January 1995'); // That day was a Sunday return strftime(%A,