add day of the week to a question?

More
3 years 8 months ago #116760 by andogro
andogro created the topic: add day of the week to a question?
Hello

I have a questionnaire that is sent out on different days to people. I want a question to say

In the past seven days, since last {day of week} did you....

I'm wondering if there is a way to get this dynamically? I know the date is captured as a field but is there a way to convert that to day of the week and insert? I also looked at the date/time question but did not see how to display as text ie Wednesday.

Thanks
Andy

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

More
3 years 8 months ago #116768 by aesteban
aesteban replied the topic: add day of the week to a question?
Have you tried additional attributes ?

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

More
3 years 8 months ago - 3 years 8 months ago #116781 by tpartner
tpartner replied the topic: add day of the week to a question?
You can use the Expression Manager date() function to pipe in the current day of the week:

In the past seven days, since last {date('l')}, did you....


manual.limesurvey.org/Expression_Manager#Access_to_Functions


.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 3 years 8 months ago by tpartner.
The following user(s) said Thank You: andogro

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

More
3 years 8 months ago #116797 by andogro
andogro replied the topic: add day of the week to a question?
Thanks Tony, worked perfectly.

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!