0 votes

So let's say I have the following question:


*question: Which of these times of day work best for you to participate in this study?  **Do not select a time that has already happened**
    10 am ET
    12 pm ET
    2 pm ET
    4 pm ET
    6 pm ET
    None of these times work
    *type: checkbox
    *save: time_preference
    *throwaway

Is it possible to do something like

>> currentTime = calendar::time
if currentTime < "10 am": 
    >> options = ["10 am", "12 pm", "2 pm", "4 pm", "6 pm"]

to only show times later than current?

by (5.8k points)

1 Answer

0 votes
Best answer

Here a simplified example with time in user's time zone: https://www.guidedtrack.com/programs/14101/

calendar::now gets the current date + time in the person’s own time zone, whereas calendar::time gets the current time in their own time zone.

Program library has current time Eastern Time program that asks for the user's time zone and converts it to ET.

by (5.8k points)
selected by
Welcome to Guidedtrack Q&A, where you can ask questions and receive answers from other members of the community.
134 questions
144 answers
55 comments
40 users