- Posts: 31
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Date question date_min issue - BUG?
- pvdemael
- Topic Author
- Offline
- Junior Member
Less
More
9 years 3 months ago - 9 years 3 months 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.
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.
Attachments:
Last edit: 9 years 3 months ago by pvdemael. Reason: added LS version
The topic has been locked.
- pvdemael
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
9 years 2 months 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
bugs.limesurvey.org/view.php?id=9476
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
9 years 2 months ago #116587
by holch
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
9 years 2 months ago - 9 years 2 months 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+
I hope this gets solved soon, I need this functionality
Obviously 2.05+
Last edit: 9 years 2 months ago by pvdemael. Reason: Correct LS version
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 2 months ago #116640
by Mazi
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
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.
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 0
9 years 2 months 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
- Offline
- Official LimeSurvey Partner
9 years 2 months ago #116650
by Mazi
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
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.