1. Use Cases
Use this component in scenarios that require selecting two dates, such as leave requests, business trip periods, or service processing times.For component attributes, usage, and examples, see this reference.
2. Basic Features
2.1 Date Format
Set the display format of the date. Path: Component >> Attribute >> Format When Format is set to Year-Month-Day, the component displays as follows. Other formats work the same way.2.2 Set a Fixed Time (Default Value)
Set a fixed value for the date range. Once a default value is set, the date range component displays the configured default directly. You can still select a different date manually. Path: Attribute >> Default When setting the default value, the default format is “Year-Month-Day 00:00:00”, but the component displays the value according to the configured Format. The result is shown below. When Format is set to Year-Month-Day. The actual displayed date format is as follows.3. Advanced Usage
3.1 Calculate Date Differences
Calculate the difference between the two dates selected in the date range, and populate the result into a numerical component.3.1.1 Configuration Steps
- On the form design page of a form or workflow form, drag a date range component and a numerical component onto the canvas.
- Click the numerical component, then select formula editing under Default on the left.
- Click Edit Formula >> select a time function >> select the CASCADEDATEINTERVALV2 function. See the figure below for detailed configuration.
- The result is shown below.