Mimimum date not accepted as valid date

More
5 months 3 weeks ago #155201 by terryaulenbach
terryaulenbach created the topic: Mimimum date not accepted as valid date
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:

Please Log in to join the conversation.

More
5 months 3 weeks ago #155208 by tpartner
tpartner replied the 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.
Attachments:
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

More
5 months 3 weeks ago #155209 by terryaulenbach
terryaulenbach replied the topic: Mimimum date not accepted as valid date
Awesome! Thanks, Tony. I especially appreciate the quick response.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!