Question type - Date/28/en: Difference between revisions
From LimeSurvey Manual
(Importing a new version from external source) |
(Importing a new version from external source) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Alert||text=Dates in Limesurvey are saved as a string (text format). | {{Alert||text=Dates in Limesurvey are saved as a string (text format). The [[ExpressionScript - Presentation|ExpressionScript]] converts all dates part of an expression into the standard format "yyyy-mm-dd HH:MM:SS". This makes it much easier to compare dates in an expression (e.g. "date1>date2"). If you need a datestring in the format it was asked in the question, use the ".shown" attribute (e.g.: You were born on the {birthdate.shown}.)}} |
Latest revision as of 16:45, 20 May 2020
Dates in Limesurvey are saved as a string (text format). The ExpressionScript converts all dates part of an expression into the standard format "yyyy-mm-dd HH:MM:SS". This makes it much easier to compare dates in an expression (e.g. "date1>date2"). If you need a datestring in the format it was asked in the question, use the ".shown" attribute (e.g.: You were born on the {birthdate.shown}.)