
11-25-2012, 06:23 PM
|
|
|
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by kh99
OK, I think the problem is that if you have a language with a locale set, then vbdate uses strftime() to format the date rather than date(), and strftime() uses different format specifications. I think the solution is to set the 4th parameter of vbdate() to 'false' to make it use date(). There's also a 3rd parameter that says whether or not to use "yesterday" and "today" for recent dates, so you have to specify that as well (the default is 'false').
So, try this:
Code:
$tarih = vbdate('m-d-Y', $thread['dateline'], false, false);
|
It works but the result is:
10-18-201210-18-2012
|