Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Date is Not Valid?

Date is Not Valid? 6 Monate 3 Wochen her #100267

  • lmw1
  • lmw1s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 31
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100288

  • mfaber
  • mfabers Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 81
  • Dank erhalten: 21
  • 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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: lmw1

Date is Not Valid? 6 Monate 3 Wochen her #100312

  • lmw1
  • lmw1s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 31
  • Dank erhalten: 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
Letzte Änderung: 6 Monate 3 Wochen her von lmw1. Begründung: Add text
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100317

  • c_schmitz
  • c_schmitzs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 719
  • Dank erhalten: 91
  • Karma: 83
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100318

  • lmw1
  • lmw1s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 31
  • Dank erhalten: 1
  • Karma: 1
How would I do that?

Thank you for trying to help me!

Respectfully,
Leonard Michael
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100321

  • c_schmitz
  • c_schmitzs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 719
  • Dank erhalten: 91
  • Karma: 83
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100322

  • lmw1
  • lmw1s Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 31
  • Dank erhalten: 1
  • Karma: 1
How about an .lsq file?

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

Dateianhang:

Dateiname: h3995aa7.lsq
Dateigröße: 2 KB


Respectfully,
Leonard Michael
Letzte Änderung: 6 Monate 3 Wochen her von lmw1. Begründung: add file
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100350

  • mfaber
  • mfabers Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 81
  • Dank erhalten: 21
  • 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 3 Wochen her #100351

  • mfaber
  • mfabers Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 81
  • Dank erhalten: 21
  • 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Date is Not Valid? 6 Monate 2 Wochen her #100369

  • mfaber
  • mfabers Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 81
  • Dank erhalten: 21
  • 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: lmw1
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.160 Sekunden
Donation Image