你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

dayofmonth()

返回一个整数,表示给定日期/时间的日编号。

语法

dayofmonth(date)

详细了解语法约定

参数

名称 类型 必需 描述
date datetime ✔️ 用于提取日编号的日期/时间。

返回

一个整数,表示给定日期/时间的日编号。

示例

dayofmonth(datetime(2015-12-14))

输出

result
14