Actions

QS

Date time format: Difference between revisions

From LimeSurvey Manual

(Add month and year format)
mNo edit summary
Line 10: Line 10:


<!--T:4-->
<!--T:4-->
This question attribute can be used to specify a custom date format. If it's empty, the survey date format is used.
This question option can be used to specify a custom date format. If it is empty, [[Survey_texts#Survey_texts_panel|the survey date format]] will be used.


<!--T:5-->
<!--T:5-->
Line 16: Line 16:


<!--T:6-->
<!--T:6-->
The d/dd m/mm yy/yyyy H/HH M/MM formats and "-./:" characters are allowed for day/month/year/hour/minutes without or with leading zero respectively.
*The d/dd,m/mm,yy/yyyy,H/HH,M/MM formats can be used to display the date and/or time, while "-", ".", "/", ":" can be used as separators.  
Example are: "yyyy-mm-dd", "dd.mm.yyyy HH:MM", "HH:MM" (only ask for time) or "yyyy/mm" (only ask for month and year).


<!--T:7-->
'''Examples'''
*"yyyy-mm-dd" - year-month-day;
*"dd.mm.yyyy HH:MM" - day.month.year Hour:Minute;
*"HH:MM" - Hour:Minute (only the time can be selected);
*"yyyy/mm" - year/month.
</onlyinclude>
</onlyinclude>




<!--T:8-->
<!--T:8-->
[[Category:Question Settings]][[Category:Advanced Question Settings]]
[[Category:Question Settings]][[Category:Question Input Options]]


</translate>
</translate>

Revision as of 16:19, 12 March 2018


Date/Time format

Description

This question option can be used to specify a custom date format. If it is empty, the survey date format will be used.

Valid values

  • The d/dd,m/mm,yy/yyyy,H/HH,M/MM formats can be used to display the date and/or time, while "-", ".", "/", ":" can be used as separators.

Examples

  • "yyyy-mm-dd" - year-month-day;
  • "dd.mm.yyyy HH:MM" - day.month.year Hour:Minute;
  • "HH:MM" - Hour:Minute (only the time can be selected);
  • "yyyy/mm" - year/month.