Date and time locales available in MariaDB
The following table is a complete list of date and time locales available in MariaDB.
| the code | language | nation | 
|---|---|---|
| ar_AE | Arabic | united arab emirates | 
| ar_BH | Arabic | Bahrain | 
| ar_DZ | Arabic | Algeria | 
| ar_EG | Arabic | Egypt | 
| ar_IN | Arabic | India | 
| ar_IQ | Arabic | Iraq | 
| ar_JO | Arabic | Jordan | 
| ar_KW | Arabic | Kuwait | 
| ar_LB | Arabic | Lebanon | 
| ar_LY | Arabic | Libya | 
| ar_MA | Arabic | morocco | 
| ar_OM | Arabic | Oman | 
| ar_QA | Arabic | Qatar | 
| ar_SA | Arabic | Saudi Arabia | 
| ar_SD | Arabic | Sudan | 
| ar_SY | Arabic | Syria | 
| ar_TN | Arabic | Tunisia | 
| ar_YE | Arabic | Yemen | 
| be_BY | Belgian | Belarus | 
| bg_BG | Bulgarian | Bulgaria | 
| ca_ES | Catalan | Spain | 
| cs_CZ | Czech | Czech Republic | 
| da_DK | Danish | Denmark | 
| de_AT | German | Austria | 
| de_BE | German | Belgium | 
| de_CH | German | Switzerland | 
| de_DE | German | Germany | 
| de_LU | German | Luxembourg | 
| en_AU | English | Australia | 
| en_CA | English | Canada | 
| en_GB | English | U.K. | 
| en_IN | English | India | 
| en_NZ | English | new Zealand | 
| en_PH | English | the Philippines | 
| en_US | English | United States | 
| en_ZA | English | South Africa | 
| en_ZW | English | Zimbabwe | 
| es_AR | spanish | Argentina | 
| es_BO | spanish | Bolivia | 
| es_CL | spanish | Chile | 
| es_CO | spanish | Colombia | 
| es_CR | spanish | costa rica | 
| es_DO | spanish | Dominican Republic | 
| es_EC | spanish | ecuador | 
| es_ES | spanish | Spain | 
| es_GT | spanish | Guatemala | 
| es_HN | spanish | Honduras | 
| es_MX | spanish | Mexico | 
| es_NI | spanish | nicaragua | 
| es_PA | spanish | Panama | 
| es_PE | spanish | Peru | 
| es_PR | spanish | puerto rico | 
| es_PY | spanish | Paraguay | 
| es_SV | spanish | El Salvador | 
| es_US | spanish | United States | 
| es_UY | spanish | Uruguay | 
| es_VE | spanish | Venezuela | 
| et_EE | Estonian | Estonia | 
| eu_ES | Basque | Basque | 
| fi_FI | Finnish | Finland | 
| fo_FO | Faroese | faroe islands | 
| fr_BE | French | Belgium | 
| fr_CA | French | Canada | 
| fr_CH | French | Switzerland | 
| fr_FR | French | France | 
| fr_LU | French | Luxembourg | 
| gl_ES | Galician | Spain | 
| gu_IN | Gujarati | India | 
| he_IL | Hebrew | Israel | 
| hi_IN | Hindi | India | 
| hr_HR | Croatian | croatia | 
| hu_HU | Hungarian | Hungary | 
| id_ID | Indonesian | Indonesia | 
| is_IS | Icelandic | Iceland | 
| it_CH | italian | Switzerland | 
| it_IT | italian | Italy | 
| ja_JP | Japanese | Japan | 
| ko_KR | Korean | Republic of Korea | 
| lt_LT | Lithuanian | Lithuania | 
| lv_LV | Latvian | Latvia | 
| mk_MK | Macedonian | former yugoslav republic of macedonia | 
| mn_MN | Mongolia | Mongolian | 
| ms_MY | Malay | Malaysia | 
| nb_NO | Norwegian (Bokmal) | Norway | 
| nl_BE | Dutch | Belgium | 
| nl_NL | Dutch | Netherlands | 
| no_NO | norwegian | Norway | 
| pl_PL | Polish | Poland | 
| pt_BR | Portugal | Brazil | 
| pt_PT | Portugal | Portugal | 
| rm_CH | Romansh | Switzerland | 
| ro_RO | Romania | Romania | 
| ru_RU | Russian | Russia | 
| ru_UA | Russian | Ukraine | 
| sk_SK | Slovak | Slovakia | 
| sl_SI | Slovenian | slovenia | 
| sq_AL | Albanian | Albania | 
| sr_YU | Serbian | Yugoslavia | 
| sv_FI | Swedish | Finland | 
| sv_SE | Swedish | Sweden | 
| ta_IN | Tamil | India | 
| te_IN | Telugu | India | 
| th_TH | Thai | Thailand | 
| tr_TR | turkish | Turkey | 
| uk_UA | Ukrainian | Ukraine | 
| ur_PK | Urdu | Pakistan | 
| vi_VN | vietnamese | Vietnam | 
| zh_CN | Chinese | China | 
| zh_HK | Chinese | Hongkong | 
| zh_TW | Chinese | Taiwan Province of China | 
You can set lc_time_names to any of the above to change the current locale.
The following statement modifies the current locale to zh_HK:
SET lc_time_names = 'zh_HK';
The following statement returns the current locale:
SELECT @@lc_time_names;
Modifying the current locale will affect the output of the DAYNAME(), MONTHNAME(), and DATE_FORMAT() functions.
You can also use the SHOW LOCALES command to display all the locales in MariaDB.