- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Date format & language change
- sysco
- Topic Author
- Offline
- New Member
Less
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!
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 8 months ago #203853
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Date format & language change
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- cacorns
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
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.
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.