Actions

QS

Date min/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "'''有効な値'''")
(Created page with "* YYYY-MM-DD形式の任意の日付(例:2017-08-24) * 任意の年の数値 * 任意の[http://php.net/strtotime 英語の文字列] : "now"、"-10 years"、"tomorrow"...")
Line 14: Line 14:
'''有効な値'''
'''有効な値'''


* Any date value in format YYYY-MM-DD (eg., 2017-08-24);
* YYYY-MM-DD形式の任意の日付(例:2017-08-24)
* Any year value;
* 任意の年の数値
* Any [http://php.net/strtotime English string] : "now", "-10 years", "tomorrow";
* 任意の[http://php.net/strtotime 英語の文字列] : "now""-10 years""tomorrow"
* Reference to another date/time question : AnotherDateQuestion (using the question code);
* 他の日付/時刻質問の質問コード
* Expressions : With expressions, a minimum date can be dynamically calculated. For example, you can use a date from a previous answer + 3 days as a minimum for the present question by entering: ''date("Y-m-d",strtotime(departuredate)+3*60*60*24)''.
* : 式を使用し、日付の下限が動的に計算されます。例えば、''date("Y-m-d",strtotime(departuredate)+3*60*60*24)''と入力することによって、下限を先行する質問の回答の3日後に設定することができます。
</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:Question Display Options]]
[[Category:Question Settings]][[Category:Question Display Options]]

Revision as of 09:08, 19 May 2018


日付の下限 (date_min)

説明

この質問属性で、日付の質問で下限となる値を設定できます(y-m-d形式、英語で有効な文字列 - 詳しくは以下を参照してください)。ポップアップでもドロップダウンでも使えます。


  注意 : 式マネージャーの検証オプションにより、日付の下限を設定することもできますが、ポップアップカレンダーを使用する場合や同じページの先行する質問に依存する式を使用する場合は、ポップアップカレンダーに年が正しく表示されません。



有効な値

  • YYYY-MM-DD形式の任意の日付(例:2017-08-24)
  • 任意の年の数値
  • 任意の英語の文字列 : "now"、"-10 years"、"tomorrow"
  • 他の日付/時刻質問の質問コード
  • 式: 式を使用し、日付の下限が動的に計算されます。例えば、date("Y-m-d",strtotime(departuredate)+3*60*60*24)と入力することによって、下限を先行する質問の回答の3日後に設定することができます。