Welcome to the LimeSurvey Community Forum

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

Date format & language change

More
3 years 8 months ago #203850 by sysco
Date format & language change was created by sysco
Hi there,

I do have last version (Version 3.22.210+200804) and a question have a calendar to choose a date. If I am in French, the calendar set a date like 27-08-2020. If I then immediately change survey language to German, the date field is empty and an alert says: "Could not convert date 27-08-2020 to format d.m.Y. Please check your date format settings." because German seems to need a date like 27.08.2020.

Is there a way to fix this, so LS can transform 27-08-2020 into 27.08.2020 automatically when I change survey language?
Or a way to put the same date format for all my survey' languages?

Best regards!
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #203853 by tpartner
Replied by tpartner on topic Date format & language change
Set a date format in the question settings.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
3 years 7 months ago - 3 years 7 months ago #205683 by cacorns
Replied by cacorns on topic Date format & language change
I had the same problem with Brazilian language. I solve this by accessing the Survey Properties -> General settings & texts. In Portuguese (Brazilian) tab I changed the Date Format from "dd/mm/yyyy" to "dd-mm-yyy".

See: manual.limesurvey.org/Text_elements#Survey_text_elements_panel

I think in my case the problem was related to the date picker widget for the date field. The dates are displayed in the format "mm-dd-yyyy" (with dashes) when you select a date.

Hope this helps you.

PS: LimeSurvey version: 2.73.1+171220.
Last edit: 3 years 7 months ago by cacorns.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose