DAYOFYEAR
Descriptionβ
Obtains the corresponding day of the year for the given date.
Syntaxβ
DAYOFYEAR(<dt>)
Parametersβ
Parameter | Description |
---|---|
<dt> | The date expression to be calculated |
Return Valueβ
Returns the day of the year corresponding to the given date.
Examplesβ
select dayofyear('2007-02-03 00:00:00');
+----------------------------------+
| dayofyear('2007-02-03 00:00:00') |
+----------------------------------+
| 34 |
+----------------------------------+