x

Hoofdstukken

  1. LimeSurvey Cloud vs LimeSurvey CE
  2. LimeSurvey Cloud - Quick start guide
  3. LimeSurvey CE - Installatie
  4. Hoe maak je een goede enquête
  5. Aan de slag
  6. LimeSurvey configuratie
  7. Inleiding - Enquêtes
  8. Bekijk enquête-instellingen
  9. Bekijk enquête-menu
  10. Bekijk de enquêtestructuur
  11. Introductie - Vragen
  12. Introductie - Vraaggroepen
  13. Inleiding - Enquêtes - Management
  14. Enquête taakbalk opties
  15. Meertalige enquête
  16. Quick start guide - ExpressionScript
  17. Geavanceerde features
  18. Algemeen FAQ
  19. Probleemoplossing
  20. Tijdelijke oplossingen
  21. Licentie
  22. Versie change log
  23. Plugins - geavanceerd
 Actions

DateFunctions/nl: Difference between revisions

From LimeSurvey Manual

Han (talk | contribs)
Created page with "{{FeatureStarting/nl|5.X.Y}}"
Han (talk | contribs)
Created page with "=Gebruik="
Line 2: Line 2:
{{FeatureStarting/nl|5.X.Y}}  
{{FeatureStarting/nl|5.X.Y}}  


=Usage=
=Gebruik=


Functions for the ExpressionScript engine to handle date variables:
Functions for the ExpressionScript engine to handle date variables:

Revision as of 14:28, 27 November 2022

 Tip: De functie is beschikbaar vanaf versie 5.X.Y


Gebruik

Functions for the ExpressionScript engine to handle date variables:

  • localize_date(date[, language = null]): Formats a date according to the Survey's date format for the specified language.
    • The date given should follow the following format "Y-m-d H:i:s", which is for example the one used by the TOKEN:VALIDFROM variable.
    • 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

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.