Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Date question date_min issue - BUG?

More
10 years 7 months ago - 10 years 7 months ago #116469 by pvdemael
Hoi all,

I have 2 date questions startDate and stopDate.
I want to limit the stopDate with date_min=startDate and date_max=now.

In the date_min field of stopDate, I entered stopDate, which did not work for me so I followed the solution proposed here: www.limesurvey.org/en/forum/can-i-do-thi...-using-date-of-birth

I enter the following expression:
{date("Y-m-d H:i",mktime(0,0,0,intval(substr(startDate,5,2)),intval(substr(startDate,8,2)),intval(substr(startDate,0,4))))}

This does not work, I always see 1999 as the minimum date when I test.
I've attached a simple question group with startDate, stopDate and a boilerplate question displaying all variables.

I use version 2.06+ build 141210
Any hint is appreciated.
Last edit: 10 years 7 months ago by pvdemael. Reason: added LS version
The topic has been locked.
More
10 years 7 months ago #116584 by pvdemael
The topic has been locked.
More
10 years 7 months ago #116587 by holch

I use version 2.06+ build 141210


Maybe the problem is that you are using a Limesurvey version that doesn't exist? ;-)

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
10 years 7 months ago - 10 years 7 months ago #116588 by pvdemael
Lol, I new something was wrong ;)
I hope this gets solved soon, I need this functionality
Obviously 2.05+
Last edit: 10 years 7 months ago by pvdemael. Reason: Correct LS version
The topic has been locked.
More
10 years 7 months ago #116640 by Mazi
Did you test setting different date formats at the survey settings? Because when referring to another date using placeholders the date syntax may be important.
Try YYYY-MM-DD first.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
More
10 years 7 months ago #116647 by pvdemael
I changed the format as you suggested, but still the same thing.
The topic has been locked.
More
10 years 7 months ago #116650 by Mazi
It was worth a try. Let's wait for what the developers say at the bugtracker.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose