| day_of_year | R Documentation | 
The function converts a date (day, month, year) to Calendar Day (day of year).
day_of_year(day, format = "%Y-%m-%d")
| day | 
 | 
| format | 
 | 
numeric Julian day number, 1-366 (e.g. 1 for January 1st).
Other utility functions: 
airpressure_from_elev(),
azimuth_angle(),
daylength(),
dec_angle(),
solar_noon(),
temperature conversions,
zenith_angle()
  day_of_year(day    = "2017-04-22", 
              format = "%Y-%m-%d")
  day_of_year(day    = "2017-04-22")
  day_of_year(day    = "04/22/2017", 
              format = "%m/%d/%Y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.