Dropdown dates year min: Difference between revisions
From LimeSurvey Manual
(Marked this version for translation) |
DenisChenu (talk | contribs) (Bug #10011 follow up) |
||
Line 4: | Line 4: | ||
<onlyinclude> | <onlyinclude> | ||
===Minimum | ===Minimum date (date_min)=== <!--T:139--> | ||
<!--T:140--> | <!--T:140--> | ||
Line 10: | Line 10: | ||
<!--T:141--> | <!--T:141--> | ||
This question attribute can be used to set the minimum | This question attribute can be used to set the minimum value for the date calendar question. The date must be any English textual datetime , a date at Y-m-d PHP format or an expression return a Y-m-d PHP format. | ||
If expression have variable in the same page : this can break dropdow date. | |||
<!--T:142--> | <!--T:142--> | ||
'''Valid values''' | '''Valid values''' | ||
* 2015-01-01 | |||
* "now" | |||
* "-10 years" | |||
* date("Y-m-d", strtotime( AnotherDateQuestion )) | |||
<!--T:144--> | <!--T:144--> |
Revision as of 13:10, 17 December 2015
Minimum date (date_min)
Description
This question attribute can be used to set the minimum value for the date calendar question. The date must be any English textual datetime , a date at Y-m-d PHP format or an expression return a Y-m-d PHP format. If expression have variable in the same page : this can break dropdow date.
Valid values
- 2015-01-01
- "now"
- "-10 years"
- date("Y-m-d", strtotime( AnotherDateQuestion ))