How to display the week number based on the selected date?

  • diegogarza
    Asked on September 5, 2024 at 7:28 PM

    I want to just display the number of the week based on a fixed date from another field. theres 52 weeks each year

  • Joshua_T JotForm Support
    Replied on September 5, 2024 at 11:56 PM

    Hi Diego,

    Thanks for reaching out to Jotform Support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience and understanding.


  • Joshua_T JotForm Support
    Replied on September 6, 2024 at 12:04 AM

    Hi Diego,

    To confirm, do you want to display the week number depending on the selected date? If so, let me show you how to set it up:

    1. In Form Builder, add a Date Picker, and a Short Text element from the left panel menu.
    2. Next, click on Settings from the top bar menu, and click on Conditions from the left panel menu.
    3. Then, click on the + Add Condition and select the Update/Calculate Condition. How to display the week number based on the selected date? Image 1 Screenshot 50
    4. Finally, create these conditions (This condition only works for Week 1 and Week 2. If you want it to work for the rest of the week, you can copy the conditional format in the examples):How to display the week number based on the selected date? Image 2 Screenshot 61How to display the week number based on the selected date? Image 3 Screenshot 72

    Check out this screencast below:

    How to display the week number based on the selected date? Image 4 Screenshot 83

    Give it a try and let us know if you need any other help.

Your Answer