> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/and/date-and-time/date-or-time.md).

# 日期或时间

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-4e4f6ee74063043d734ace2acc7a232ebdda30e6%2Fimage%20(48).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## **用途：**

此 DocBits 卡片用于检查指定的日期/时间值是否在定义的范围内。它可以根据是否满足条件来继续或停止工作流，因此适用于有时效要求的操作或日程安排工作流。

## **功能：**

* **日期/时间验证：** 此卡片使用以下条件检查给定的日期/时间是否在指定范围内：
  * **是：** 检查日期/时间是否在定义的起始值和结束值范围内（含边界值）。
  * **不是：** 确保日期/时间在定义的范围之外。

**日期/时间范围：** 用户指定起始和结束日期/时间值，以定义用于比较的范围。

## **用法：**

此卡片适用于日程安排、合规性检查或在工作流中验证基于时间的条件。例如，可用于确保仅在预定义的时间段内执行任务，或核实截止日期。

## **示例场景：**

* 用户配置此卡片，检查发票的**提交日期**是否**介于** **"2024-11-01"** 和 **"2024-11-30"** 之间。如果提交日期在此范围内，工作流将继续进入付款处理；否则，工作流会触发通知，以便进一步审核。

使用“日期/时间范围验证”卡片，组织可以确保日程安排准确、提升合规性，并通过遵守预定义的时间限制来简化工作流。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/and/date-and-time/date-or-time.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
