x

Hauptkapitel

  1. LimeSurvey Cloud oder LimeSurvey CE?
  2. LimeSurvey Cloud - Schnellstartanleitung
  3. LimeSurvey CE - Installation
  4. Wie man eine gute Umfrage gestaltet (Leitfaden)
  5. Erste Schritte
  6. LimeSurvey-Konfiguration
  7. Einführung - Umfragen
  8. Umfrageeinstellungen anzeigen
  9. Umfragemenü anzeigen
  10. Umfragestruktur anzeigen
  11. Einführung - Fragen/Fragetypen
  12. Einführung - Fragegruppen
  13. Einführung - Umfragen - Management
  14. Optionen der Umfrage-Symbolleiste
  15. Mehrsprachige Umfrage
  16. Kurzanleitung - ExpressionScript
  17. Erweiterte Funktionen
  18. Allgemeine FAQ - Häufig gestellte Fragen
  19. Fehlerbehebung
  20. Tipps und Tricks
  21. Lizenzbestimmungen
  22. Änderungshistorie
  23. Plugins - Erweitert
 Actions

Datumsfunktionen

From LimeSurvey Manual

Revision as of 07:58, 1 August 2023 by Maren.fritz (talk | contribs) (Created page with "Datumsfunktionen")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 Hint: This features is available starting in version 5.X.Y


Usage

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.


Usage Example on Welcome Message

Usage Example on Email Template