How do I copy one date picker's selected value to another date picker element?

I want to validate the date selection of my user based on some value he selected previously in a date picker for another date picker.

To achieve this functionality we can follow the below-mentioned steps:

  • Let’s configure the date picker element on which our other date picker depends.
  • Map an entity in the data validation parameter of this date picker with this structure:

{"date": "string"}

Now, for the other date picker element, we will map this entity attribute as required for the start and end dates.