tsql and getting day number of the year from date.

Soldato
Joined
8 Mar 2005
Posts
3,684
Location
London, UK
Bit of a silly one really but I cannot find an obvious query or command which converts a date to day_of_year_number. For instance.
Code:
01/04/2020    92
02/04/2020    93
03/04/2020    94
04/04/2020    95
05/04/2020    96
06/04/2020    97
07/04/2020    98
08/04/2020    99
09/04/2020    100
I cannot fathom the search criteria to get what I'm after either! Google fail..
Hmm TIA!
 
Back
Top Bottom