> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取当前日期时间

## 指令说明

**描述：** 获取当前日期时间

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getcurrentdatetimecommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=45156603ab336c1a59b05d6d98375226" alt="获取当前日期时间指令参数面板" width="651" height="344" data-path="helpcenter/commands/os/images/getcurrentdatetimecommand-02.png" />

    | 参数        | 说明                                     |
    | --------- | -------------------------------------- |
    | **保存结果至** | 保存获取到的当前日期时间为变量。即指定一个变量名称，该变量用于保存当前时间。 |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getcurrentdatetimecommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=9055c1200fda8c92a3567733d4b28264" alt="获取当前日期时间使用示例" width="1280" height="224" data-path="helpcenter/commands/os/images/getcurrentdatetimecommand-01.png" />

**该流程执行逻辑：**

使用【获取当前日期时间】获取当前日期时间保存至变量当前时间 ---> 打印当前时间消息日志

RPA应用运行后

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/getcurrentdatetimecommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=0fd48fda723df7afb2d89c92f797594b" alt="获取当前日期时间效果展示" width="1359" height="280" data-path="helpcenter/commands/os/images/getcurrentdatetimecommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
