# Conditional Logic for DateTime Field base on Day of the Week

• spartan02
Asked on October 13, 2013 at 07:52 PM

Hello,

I know that the DateTime field can be used with conditional logic based on calendar dates.  Reference: (http://www.jotform.com/answers/225356-Using-DateTime-field-with-Conditional-Logic-based-on-current-date)

I believe it would be useful if you can use the days of the week  as part of the conditional logic.

For instance, If Today's Date is equal to "Sunday", then show X, Y and Z fields.

Is this possible? Or can this functionality be added?

Thank you.

• Welvin
Answered on October 14, 2013 at 03:32 AM

Hi,

You can define the dates that corresponds to Sunday. So for example, if the Sunday's date is October 20, 2013. You can have your conditional logic as follows:

So if there are four (4) Sunday's in a month, you will have four conditional logic as well. NOTE that you can have dynamic dates as "today + 1" or "today - 1".

Thanks

• spartan02
Answered on October 14, 2013 at 11:15 AM

Thank you.  This works, but I do not think it is not an efficient solution because it requires adding the specific date of every Sunday in a calendar year (or multiple years) if a person wanted to set up the conditions perpetually.  I have different conditions for each day of the week.  Therefore, I have to go through the entire calandar year and find the specific dates in order to use the solution suggested above.  Wouldn't it be easier so that we can say if today's date is equal to "Sunday", then show x,y and z fields? That way you don't have to set up conditions for each specific date.

Thank you.

• spartan02
Answered on October 14, 2013 at 12:45 PM

Thanks for your efforts.  If you could escalate to the development team that would be great.

Thank you!

• Welvin
Answered on October 14, 2013 at 01:07 PM

Thanks for the additional information above. I have now added this thread to our feature request list. We cannot give you any details for the timeframe but, you should receive a notification via this thread for any progress made into this.

Thanks for the idea!

• Stevenbuller
Answered on January 22, 2016 at 06:49 PM

Please escalate this, I am trying to perfect a quoting system which will depend on the day of the week for our availability.  Please Please!
• Kevin_G
Answered on January 23, 2016 at 01:40 AM

Hi,

Thanks.

• Welvin
Answered on January 23, 2016 at 06:54 AM

• Welvin
Answered on January 23, 2016 at 09:14 AM

Actually, this is already marked as resolved to our end. But thank you for the help. That is greatly appreciated.

• Welvin
Answered on January 23, 2016 at 11:56 AM

Well, our developers are responsible for updating tickets if they release something. It's either the assigned developer just marked this resolved or the other dev - all without putting something that would notify the original poster. We apologize for that case.

As for your own thread. I'm sure, those will be updated soon. If you think you are not updated, kindly reply to the thread so we can make a follow up.

• Stevenbuller
Answered on January 23, 2016 at 03:12 PM

Thanks JotForm support for adding this functionality.  Much appreciated!

• Kevin_G
Answered on January 23, 2016 at 08:40 PM