Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 455 Bytes

File metadata and controls

28 lines (19 loc) · 455 Bytes

dayofyear

description

Syntax

INT DAYOFYEAR(DATETIME date)

获得日期中对应当年中的哪一天。

参数为Date或者Datetime类型

example

MySQL > select dayofyear('2007-02-03 00:00:00');
+----------------------------------+
| dayofyear('2007-02-03 00:00:00') |
+----------------------------------+
|                               34 |
+----------------------------------+

keyword

DAYOFYEAR