Forum

Moritz Strauss
      Has successfully completed the online course Introduction
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the Intermediate Certification
    1 year ago #35645
    Up
    1
    Down
    ::

    As of update 14 (2023-01-18) of the Standard Content we added the properties “minimumDate” and “maximumDate” to the DatePicker and DateTimePicker (OpenUI5 1.96).
    Both properties are strings that are converted to Javascript date objects internally to set the UI5 standard properties minDate and maxDate.

    If you want to allow only dates larger than 18 years you can dynamically calculate the string for the correct date 18 years ago (or in the future) in a Business Object and use the output to set the min/max property of your Picker.