Welcome to the LimeSurvey Community Forum

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

Date question date_min issue - BUG?

  • pvdemael
  • pvdemael's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #116469 by pvdemael
Date question date_min issue - BUG? was created 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: 9 years 1 month ago by pvdemael. Reason: added LS version
The topic has been locked.
  • pvdemael
  • pvdemael's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago #116584 by pvdemael
Replied by pvdemael on topic Date question date_min issue - BUG?
I've filed a bug report
bugs.limesurvey.org/view.php?id=9476
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116587 by holch
Replied by holch on topic Date question date_min issue - BUG?

I use version 2.06+ build 141210


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

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • pvdemael
  • pvdemael's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago - 9 years 1 month ago #116588 by pvdemael
Replied by pvdemael on topic Date question date_min issue - BUG?
Lol, I new something was wrong ;)
I hope this gets solved soon, I need this functionality
Obviously 2.05+
Last edit: 9 years 1 month ago by pvdemael. Reason: Correct LS version
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 1 month ago #116640 by Mazi
Replied by Mazi on topic Date question date_min issue - BUG?
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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • pvdemael
  • pvdemael's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 1 month ago #116647 by pvdemael
Replied by pvdemael on topic Date question date_min issue - BUG?
I changed the format as you suggested, but still the same thing.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 1 month ago #116650 by Mazi
Replied by Mazi on topic Date question date_min issue - BUG?
It was worth a try. Let's wait for what the developers say at the bugtracker.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose