Yii Framework Forum: Tarihde turkce gun ve ay isimleri - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Tarihde turkce gun ve ay isimleri Tarihde turkce gun ve ay isimleri

#1 User is offline   ahmetsulek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 29-August 11

Posted 08 October 2011 - 05:55 AM

Selamlar,

Tarih gosteriminde turkce gun ve ay isimleri nasil gosteririz fikri olan var mi?

Kodum bu sekilde;

echo CTimestamp::formatDate('M Y',CDateTimeParser::parse($work->start_date, 'yyyy-MM-dd'));


Aldigim sonuc bu sekilde;

Feb 2010
0

#2 User is offline   Cihan Ozturk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 02-June 10
  • Location:İstanbul

Posted 11 October 2011 - 03:44 PM

View Postahmetsulek, on 08 October 2011 - 05:55 AM, said:

Selamlar,

Tarih gosteriminde turkce gun ve ay isimleri nasil gosteririz fikri olan var mi?

Kodum bu sekilde;

echo CTimestamp::formatDate('M Y',CDateTimeParser::parse($work->start_date, 'yyyy-MM-dd'));


Aldigim sonuc bu sekilde;

Feb 2010


bir bunu denermisin index.php kısmına :-) ( belki configten ayarlanabilir araştırmadım )
setlocale(LC_ALL,  'tr_TR.UTF-8');
setlocale(LC_CTYPE, 'C');

0

#3 User is offline   ahmetsulek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 29-August 11

Posted 19 November 2011 - 03:49 PM

Selamlar,

Bu yontem ise yaramadi, baska bir yontem onerebilecek olan var mi?
0

#4 User is offline   Cihan Ozturk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 02-June 10
  • Location:İstanbul

Posted 24 November 2011 - 08:41 AM

View Postahmetsulek, on 19 November 2011 - 03:49 PM, said:

Selamlar,

Bu yontem ise yaramadi, baska bir yontem onerebilecek olan var mi?



$dateFormatter = new CDateFormatter('tr_tr');
$dateFormatter->format('dd MMM', strtotime($date))


0

#5 User is offline   makseli 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 19-June 12

Posted 19 June 2012 - 03:56 AM

Soruyu soran arkadaş çözüm buldu mu ?

sonucu yazarsanız forum amacına ulaşmış olur arakdaşlar...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users