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

dayofmonth()

适用于:✅✅Azure 数据资源管理器Azure Monitor✅ Sentinel

将月份中的某一天作为指定日期/时间值的整数提供。

语法

dayofmonth( 日期)

详细了解语法约定

参数

客户 类型​​ 必需 描述
日期 datetime ✔️ 用于提取日编号的日期/时间。

返回

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

例子

以下示例演示如何从指定的日期/时间值中提取月份的日期。

dayofmonth(datetime(2015-12-14))

输出

结果
14