Reputation: 77
In php the date() function displays the date. But I have to display the date in kurdish language.. any one help me.
for example ..have to display the date like this
٢\١٢\٢٠١٤
Upvotes: 0
Views: 105
Reputation: 6828
As your Q is tagged WordPress, you can use date_i18n()
to retrieve the date in localized format, based on timestamp:
echo date_i18n( get_option( 'date_format' ), time() )
Upvotes: 1
Reputation: 896
You need to encode the given string to whatever charset you are using.
This is not bound to kurdish but to any language which cannot be displayed by your systems defauld charset.
Upvotes: 0