Table of Contents

Question: Date block

You can use this block to make sure your visitors are 18 or older, make date registrations, schedule meetings, and so on... Let's start 🚀

First, drag and drop the green dot and type in "Date" to create this type of question 👆🏻

For Landbot (Web)

You guessed right! You'll see a menu where you can add text, format to save the date, show date picker, set available dates, disable specific dates, validate the error messages, and customize the variable name where the answer will be saved (by default @date), right at the bottom:

  1. Text: here you will be able to set the text of the question adding a variable, bold text, hyperlink, etc. e.i. Select a date please:

  1. Format to save the date: here you can select the format of the date that you are going to save in the variable and you will also see todays date in that specific format:

Tip: Dates can be picked in different formats, but the only format that works in the Conditions block is YYYY-MM-DD or YYYY/MM/DD.
  1. Show date picker: this checkbox is checked by default. If You don't want to show the date picker you will need to uncheck it.

Warning: Not showing the date picker means that, if you have availability settings, they won't be visible for the end-user. So, the best solution is to make it clear in the bot's messages. For example: “Please type your birth date. Only past dates allowed”
  1. Set available dates: allows to show availability in the date picker, but you also have the option to include or exclude the current date when setting available dates.

Here you have 3 options: Past dates only, Future dates only, and Custom Range:

  • All: let the user select between all the dates (past, present, and future dates):
  • Past dates only: allows the user to select only past dates from today, the future dates will be blocked:

When selecting past dates you will also have the option to include or exclude the current date:

  • Future days only: allows the user to select only future dates from today, the past dates will be blocked:

When selecting future dates you will also have the option to include or exclude the current date:

  • Custom range: allows you to create several date ranges (no limit) and also allows you to create open ranges, for example:
  1.  21/02/24 - No end date 

Builder:

Chat:

  1. No start date - 21/03/19

Builder:

Chat:

  1. Disable specific days: you can disable days of the week and you can combine it with the settings above:
  • Disable Wednesday

Builder:

Chat:

  1. Validation error message: you can customize the error message that will be shown in the chat:
Note: these features are only available in v3.
  1. Custom Help text Date block: By default, you will see "Please enter a valid date (@format), but you can customize the message through:

Settings > Custom System Message > Help text >Dates picker

Adding the variable @format is optional, but if you add it, the system will show the format.

Extra information

  • This feature is only available in bots v3
  • To show the date picker in the Mobile device you must have activated the "Show a Date Picker" otherwise the visitors will have to write the date manually.

For WhatsApp

This functionality is partially supported in WhatsApp:

  • It won't display a calendar to choose from, the user must type in the date.
  • It will validate if the input is correct, according to the format chosen in the block (ie. 2019/12/24).
  • It will display an error message if the date input is not correct.
  • The Set Available Dates feature (Past, Future, etc) is not compatible in WhatsApp.
Warning: Since it will not be possible to proceed before answering this block in the correct format, please make sure to select the right format and inform the user about it.
For a list of all the blocks and current functionalities with WhatsApp bots, please check here

For Facebook Messenger

This functionality is partially supported by Messenger:

  • It won't display a calendar to choose from, so it waits for input from the User.
  • It will validate if the input is correct, according to the format chosen in the block (ie. 2020/02/21 or 21/02/2020)
  • It will display an error message if the date input is not correct.
Warning: Since it will not be possible to proceed before answering this block in the correct format, please make sure to select the right format and inform the user about it.
You can check our Academy video here, but you must be registered in our free Academy 💡

How did we do?

How to avoid visitors selecting specific days of the week

How to calculate the number of days between two selected dates

Contact