Welcome to the LimeSurvey Community Forum

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

Mimimum date not accepted as valid date

  • terryaulenbach
  • terryaulenbach's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #155201 by terryaulenbach
Mimimum date not accepted as valid date was created by terryaulenbach
I'm using Version 2.56.1+161118 and have created a date question which has the Minimum date set to "+20 days". The pop-up calendar works properly and only allows you to select starting 20 days from now. However, if you select the minimum date as your answer, you get "Answer must be between 14/06/2017 and 20/07/2017" (based on today). I'm using the date format dd/mm/yyyy.

Help!
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #155208 by tpartner
Replied by tpartner on topic Mimimum date not accepted as valid date
That seems to be a bug, please file a bug report.

In the meantime, it seems that using the Expression Manager date(), time() and mktime() functions works.

In the first screenshot below:
  • Min date is set to the current time plus the number of seconds in 20 days
  • Max date is set to 00:00:00 on July 20th, 2017




Sample survey attached:

File Attachment:

File Name: limesurvey...5-25.lss
File Size:14 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • terryaulenbach
  • terryaulenbach's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #155209 by terryaulenbach
Replied by terryaulenbach on topic Mimimum date not accepted as valid date
Awesome! Thanks, Tony. I especially appreciate the quick response.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose