Question in (current) date format

Plus d'informations
il y a 2 ans 10 mois #142692 par hanwerts
I want to program a question in date format in which I want to know when the user started a course. This in itself is an easy task. I use the drop down option in which the user can enter the full date or select day, month and year from a calendar.

I would like to compare the input from the user to a predefined date. The latter one is dynamic, i.e. it should be the current date, so it will change every day. I came up with the idea that the current date will be set using a hidden question which precedes the date question presented to the user.

How can I set the current date in a hidden question and use it in the next date question? And how can I validate that the input from the user will be in the past (i.e. lower than current date from the hidden question)?

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 ans 10 mois #142696 par jelo
Réponse de jelo sur le sujet Question in (current) date format

hanwerts écrit: How can I set the current date in a hidden question and use it in the next date question?

{date('Y-m-d')} should work in a equation question.

You might calculate differences in e.g days and compare them.
www.limesurvey-consulting.com/how-to-cal...nd-the-current-date/

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!