EMFunctions

package

Default

Methods

Formats a date according to the Survey's date format for the specified language

localize_date(string $date,string|null $language = null): string
static

Arguments

$date

string

: a date in "Y-m-d H:i:s" format. Example: VALIDFROM.

$language

string|null

: the language used for localization. Defaults to current session language. If the current language is not configured in the survey, the survey base language will be used. When using in email templates, please use the token language as parameter as to set the expected language. Example: TOKEN:LANGUAGE

Response

string