activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年2月24日

管理日期

You are able to set a minimum or a maximum date for your Date / Time component of your form, as well as restrict the user selection of specific dates.

设置相对日期

从用户选择中删除日期要使表单中的一个或多个特定日期不可供选择,请使用“禁用特定日期”或“日期范围”字段。使用YYYY-MM-DD格式指定所需的日期。

您可以使用复选框将每个周末或每个工作日设为无法选择。

教程

要使用此功能,请执行以下操作:

  1. Navigate to the Date tab of your Date / Time component.
  2. In the Minimum Date field, input the desired date as the earliest option for your business users.
  3. 最大日期字段中,输入所需的日期,作为适合企业用户的最新选项。将上述任何字段留空都允许用户在可用日历上选择任何日期。

设置相对日期

要设置相对的最小或最大日期,您可以使用 JavaScript 库 Moment.js。

例如,要将最短日期设置为当前日期前 10 天,请执行以下操作:

  1. Check the Use Input to add moment.js for minDate box.

  2. Input moment().subtract(10,'days') in the Minimum Date field.

  3. 要将最大日期设置为当前日期后 10 天,请执行以下操作:

    1. Check the Use Input to add moment.js for maxDate box.
    2. Input `moment().add(10,'days') in the Maximum Date field.

    docs image

  • 教程
  • 设置相对日期

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。