Actions

DatumFuncties

From LimeSurvey Manual

Revision as of 14:30, 27 November 2022 by Han (talk | contribs) (Created page with "* localize_date(date[, language = null]): Maakt een datum op volgens de datumnotatie van de enquête voor de opgegeven taal. ** De opgegeven datum moet het volgende formaat "...")
 Tip: De functie is beschikbaar vanaf versie 5.X.Y


Gebruik

Functies voor de ExpressionScript-engine om datumvariabelen te verwerken:

  • localize_date(date[, language = null]): Maakt een datum op volgens de datumnotatie van de enquête voor de opgegeven taal.
    • De opgegeven datum moet het volgende formaat "Ymd H:i:s" hebben, dat bijvoorbeeld wordt gebruikt door de variabele TOKEN:VALIDFROM.
    • De taal die wordt gebruikt voor lokalisatie is standaard de taal van de huidige sessie. Als de huidige taal niet is geconfigureerd in de enquête, wordt de basistaal van de enquête gebruikt. Gebruik bij gebruik in e-mailsjablonen de tokentaal als parameter om de verwachte taal in te stellen. Voorbeeld: TOKEN:LANGUAGE

This plugin uses the ExpressionManagerStart plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.

  Before using these functions, the plugin must be activated in Plugin Manager.