LimeSurvey API - Master branch

EMFunctions
in package

Table of Contents

Methods

localize_date()  : string
Formats a date according to the Survey's date format for the specified language

Methods

localize_date()

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

public static localize_date(string $date[, string|null $language = null ]) : string
Parameters
$date : string

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

$language : string|null = 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

Return values
string

        
On this page

Search results