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)

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 (98,770 points)
selected Jun 28, 2021 by sallen
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.