# Date input

## Add a date input

1. Open an existing [application ](https://docs.novacura.com/flow-connect/working-with-connect/create-and-design/applications/create#create-application)or create a new one in an [application package](https://docs.novacura.com/flow-connect/working-with-connect/create-and-design/application-packages) and open it in the Designer.

   1. Add a User step.&#x20;
   2. Add a Date input.&#x20;
   3. In the Target Variable, write "deliveryDate".
   4. Under Appearance, in Prompt, write "Enter a delivery date".
   5. In Default Text, write "2030-01-01".
   6. Click the **Play** button in the top right-hand corner to run the application in diagnostic mode.

   <figure><img src="https://1716064794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIIgl6sNaTky0iALxYWHH%2Fuploads%2FFLui6XN3WoWJv2KjxbP5%2FDate%20input.png?alt=media&#x26;token=a18ed60e-ec36-4143-8bba-077c9141b6cd" alt=""><figcaption><p>The way the app is set up, it won't allow the user to leave the value empty. We therefore have a default value. If you want the user to not be able to move forward without writing a value of their own, remove the default value.</p></figcaption></figure>
2. Go back to the Designer.

   1. In the Condition To Hide, write “{userId = “*your user id”*} *(the user Id you log in to Connect with)*
   2. Run the application in diagnostic mode again.

   <figure><img src="https://1716064794-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIIgl6sNaTky0iALxYWHH%2Fuploads%2FoHGixRKhz7mCgFwRtmor%2FWith%20border.png?alt=media&#x26;token=fabf8a31-f25e-4599-9864-41bbd0010540" alt=""><figcaption><p>The image is now hidden since the condition is fulfilled.</p></figcaption></figure>
