Date Time format in a Condition

  • MembershipSec
    Asked on November 3, 2015 at 4:33 AM

    I wish to hide / unhide fields until a specified date and time.

    What is the format to specify the date and time in the condition?

    Thanks in anticipation

  • Chriistian Jotform Support
    Replied on November 3, 2015 at 8:55 AM

    Hi,

     

    As per checking, the Date Time field After/Before in the condition wizard only works for the date. The time is not being considered in the condition rule. The format for the After/Before condition is YYYY-MM-DD.

    Date Time format in a Condition Image 1 Screenshot 30

     

    You can check this cloned form that I have created for testing - https://form.jotformpro.com/53063133438955?. I have setup the condition as shown above. I use the date "2015-11-03 09:00". However, I noticed that when I test the form, the condition are only trigger if the date is set to the next date. 

    Date Time format in a Condition Image 2 Screenshot 41

     

    Do let us know if you need further assistance.
    Regards.

  • MembershipSec
    Replied on November 3, 2015 at 9:17 AM

    Sorry - do you mean I can only Hide / Unhide based on a date.?

    Are you saying Time is not relevant in the Hide / Unhide Condition?

  • David JotForm Support Manager
    Replied on November 3, 2015 at 12:20 PM

    Correct, the conditional logic does not take the time, so you can only Show/Hide based on date.

    If you want to, we could send a request to our second level to implement the time, but there is no guarantee this will be approved, and if it gets approved, there is no estimated time-frame for it's implementation.