Skip to main content

SET_LOCAL() Supported Language Descriptions

SET_LOCALE()

The SET_LOCAL() function allows the setting of a specific language environment for the specified date.The method it uses is:

SET_LOCALE(date, locale_modifier)

date: indicates the specified date. locale_modifier:indicates a language environment descriptor.

This function must be used in conjunction with Datetime_FORMAT().For example:

DATETIME_FORMAT(SET_LOCALE(NOW(), "ko"), "LLLL")

"Ko" means output date to "Korean".

List of descriptors

Language description supported in AITable

Language environment descriptor (lowercase)DescriptionExamples
enEnglishDATETIME_FORMAT(SET_LOCALE(NOW(), "en"), "LLLL")
=>Saturday, July 18, 2020 4:45 PM
zh-cnChinese SimplifiedDATETIME_FORMAT(SET_LOCALE(NOW(), "zh-cn"), "LLLL")
=>2020年7月18日星期六下午4点35分
zh-twChinese TraditionalDATETIME_FORMAT(SET_LOCALE(NOW(), "zh-tw"), "MMMD,ddd")
=>7月18,週六
frFrenchDATETIME_FORMAT(SET_LOCALE(NOW(), "fr"), "LLLL")
=>samedi 18 juillet 2020 16:35
esSpanishDATETIME_FORMAT(SET_LOCALE(NOW(), "es"), "LLLL")
=>sábado, 18 de Julio de 2020 16:35
ptPortugueseDATETIME_FORMAT(SET_LOCALE(NOW(), "pt"), "LLLL")
=>Sábado, 18 de Julho de 2020 às 16:35
ruRussianDATETIME_FORMAT(SET_LOCALE(NOW(), "ru"), "LLLL")
=>суббота, 18 июля 2020 г., 16:35
arArabicDATETIME_FORMAT(SET_LOCALE(NOW(), "ar"), "LLLL")
=>السبت 18 يوليو 2020 16:35
deGermanSET_LOCALE(NOW(), "de"), "LLLL")
=>Samstag, 18. Juli 2020 16:35
jaJapaneseSET_LOCALE(NOW(), "ja"), "LLLL")
=>2020年7月18日 土曜日 16:35
koKoreanSET_LOCALE(NOW(), "ko"), "LLLL")
=>2020년 7월 18일 토요일 오후 4:35
hiHindiSET_LOCALE(NOW(), "hi"), "LLLL")
=>शनिवार, 18 जुलाई 2020, PM 4:35 बजे