Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Date is Not Valid?

Date is Not Valid? 1 year 1 day ago #100267

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
I have a simple month/year drop-down, but whenever you select the month and year from it - it says - DATE IS NOT VALID. Even does it when I set it to "not" mandatory.

Any ideas why this is occurring and perhaps a fix?

Respectfully,
Leonard Michael
The administrator has disabled public write access.

Date is Not Valid? 1 year 23 hours ago #100288

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 85
  • Thank you received: 22
  • Karma: 4
Hi, hard to say without more info. Can you provide an example survey showing the problem (1 question is enough)? What is you LS version?
The administrator has disabled public write access.
The following user(s) said Thank You: lmw1

Date is Not Valid? 1 year 13 hours ago #100312

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
It's just the standard month/year dropdown. I didn't do anything out of the ordinary with it.

I have it set to display as mm/yyyy. Would that cause an issue?

Version 2.00+ Build 130802

Respectfully,
Leonard Michael
Last Edit: 1 year 13 hours ago by lmw1. Reason: Add text
The administrator has disabled public write access.

Date is Not Valid? 1 year 5 hours ago #100317

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 789
  • Thank you received: 113
  • Karma: 92
Providing a small sample survey is the best way for us to find out :)
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Date is Not Valid? 1 year 5 hours ago #100318

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
How would I do that?

Thank you for trying to help me!

Respectfully,
Leonard Michael
The administrator has disabled public write access.

Date is Not Valid? 1 year 4 hours ago #100321

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 789
  • Thank you received: 113
  • Karma: 92
Create a small sample survey with that one question and export it as .lss file and attach it to a message here.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Date is Not Valid? 1 year 4 hours ago #100322

  • lmw1
  • lmw1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Thank you received: 1
  • Karma: 1
How about an .lsq file?

Couldn't find a way to export a .lss file.

File Attachment:

File Name: h3995aa7.lsq
File Size: 2 KB


Respectfully,
Leonard Michael
Last Edit: 1 year 4 hours ago by lmw1. Reason: add file
The administrator has disabled public write access.

Date is Not Valid? 1 year 47 minutes ago #100350

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 85
  • Thank you received: 22
  • Karma: 4
lmw1: I see...problem is that just a month and a year is indeed not a valid date. Think of it as eg. 2012-08-undefined. This does not save well to the data base. As a work around I would use two questions with dropdownboxes (one for year, one for month).

Carsten: I think the date/time question could indeed be flexible enough to also work with year and month only. It's a use case that I often have as well. I would suggest to save dates always with the 1st of the month if a mask without day is given. We also take a full date and write e.g. 2012-08-24 00:00:00 to the DB. We probably even write 1900-01-01 12:54 to the DB if only a mask for a time is given and 12:54 is entered.
The administrator has disabled public write access.

Date is Not Valid? 1 year 37 minutes ago #100351

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 85
  • Thank you received: 22
  • Karma: 4
lmw1: You may also use a "multiple numerical input" question. Set maximum characters to 2. Use one subquestion for year (YY), one for month (MM). Participants then have to type, but layout-wise it's nicer to have the two fields in one question and closer together, i think.
The administrator has disabled public write access.

Date is Not Valid? 11 months 4 weeks ago #100369

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 85
  • Thank you received: 22
  • Karma: 4
lmw1: I had a look in the code and it was actually a bug :)
It should be fixed in the next release (both 2.05 and 2.00+). Thanks for bringing this to our attention.
The administrator has disabled public write access.
The following user(s) said Thank You: lmw1
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.124 seconds
Donation Image