Time Format AM/PM

More
1 year 6 months ago #155342 by kkellytpl
kkellytpl created the topic: Time Format AM/PM
I am using the date/time question type and using HH:MM as the date/time format. Is there a way to get the date/time to display as 12 hour time with AM/PM instead of 24 hour time?

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #155343 by tpartner
tpartner replied the topic: Time Format AM/PM
This works for me:

dd/mm/yyyy, h:MM A



More on formats here - momentjs.com/docs/#/displaying/format/

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: kkellytpl

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #155344 by kkellytpl
kkellytpl replied the topic: Time Format AM/PM
I did try "h:MM A" before. After trying again, I found it only works with display drop down boxes set to off. Thank you tpartner!

Please Log in or Create an account to join the conversation.

More
3 weeks 3 days ago - 3 weeks 3 days ago #177195 by jlwood
jlwood replied the topic: Time Format AM/PM
This works in version 2.67 if the field is not mandatory. For mandatory fields the value is rejected unless the user makes a change to each individual part of the date and time.
Last Edit: 3 weeks 3 days ago by jlwood.

Please Log in or Create an account to join the conversation.

More
3 weeks 2 days ago #177205 by tpartner
tpartner replied the topic: Time Format AM/PM
Can you please try it in the current Demo site and if the problem still exists, please file a bug report.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
3 weeks 2 days ago #177243 by jlwood
jlwood replied the topic: Time Format AM/PM
It seems to be working correctly on the Demo site in version 3.1. Wish we were in a position to upgrade. Unfortunately my institutions server isn't quite LS3x-ready just yet and at the moment I depend on plugin that is LS2 only. We're getting around the problem by taking off mandatory and using some page validation.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!