格式化日期
<h1>功能</h1>
<p>根据给定的格式,返回对应的日期值。</p>
<h1>输入</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>格式</td>
<td>【字符串】日期的格式。</td>
<td>'YYYY/M/D'</td>
</tr>
<tr>
<td>日期时间</td>
<td>【TDatetime】当前的日期时间。</td>
<td>当前日期(传入变量)</td>
</tr>
</tbody>
</table>
<h1>输出</h1>
<table>
<thead>
<tr>
<th>名称</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>结果</td>
<td>【字符串】输出当前日期的格式</td>
<td>转化日期(创建变量)</td>
</tr>
</tbody>
</table>
<h1>注意/说明</h1>
<p>1.该函数与【当前日期】函数搭配使用,先获取当前日期,再将获取到的日期转化格式。
2.将创建的变量传入【日志消息】函数中,即可在控制台显示出格式化的日期。
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/f9a9ffe08fe7a728f6b3d546dbd44595" alt="" />
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/17e5500b2c16106852140f57e3c27c7e" alt="" /></p>
<h1>相关函数</h1>
<p>【当前日期】函数</p>
<h1>示例/演示</h1>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/2095aea263fb6909732614049b248d74" alt="" /></p>
<h1>示例附件</h1>
<p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4916e497bcb15f407957585922bf8971" title="[组件[格式化日期1]_20210415.db">组件[格式化日期1]_20210415.db</a></p>