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

dayofyear()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Returns the integer number represents the day number of the given year.

Syntax

dayofyear(date)

Learn more about syntax conventions.

Parameters

Name Type Required Description
date datetime ✔️ The datetime for which to determine the day number.

Returns

The day number of the given year.

Example

dayofyear(datetime(2015-12-14))

Output

result
348