Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Tips
Sawtooth Software Home
Most popular tags
cbc
lighthouse-9
acbc
ssi-web
ssi-web-8
maxdiff
cbc-hb
grid-question
javascript
constructed-list
unverified-perl
ssi-web-7
free-format
skip-logic
alternative-specific-design
willingness-to-pay
select-question
choice-simulator
cbc-latent-class
quota-control
acbc-hb
mbc
conditional-pricing
smrt
pass-in-fields
Have an idea?
Visit
Sawtooth Software Feedback
to share your ideas on how we can improve our products.
time stamp for a question
Would using this code above with the hour string also show minutes? I need to show hours and minutes but not the day.
related to an answer for:
Change text based on time of day
asked
Jun 28, 2021
by
sallen
Bronze
(
2,315
points)
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please
log in
or
register
.
Your solution to the original question
Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
1 Answer
0
votes
Best answer
Change %H to %R.
This will display hours and minutes in a 24 hour clock format.
If you want a 12 hour format, change %H to %I %M.
answered
Jun 28, 2021
by
Paul Moon
Platinum
(
96,820
points)
selected
Jun 28, 2021
by
sallen
Show 11 previous comments
The %I:%M captures a 12 hour clock.
If you need a 24 hour clock, use %H:%M.
Thanks. This works (%H:%M)!
Hi again, this is working great MOST of the time. However, some respondents are going back to update some of the information and the time is changing as a result. Is there a way to restrict this to the time that each question of interest was first viewed/responded to?
One obvious approach is to remove the BACK button and don't allow the respondents to go back.
If you do not want to do that, I would suggest you contact Sawtooth Software direct or post a new question on the forum and see what comes of it.
Thanks. I didn't know the script could call the first time a page was opened only. I will post a new question then.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
[captcha placeholder]
To avoid this verification in future, please
log in
or
register
.
...