Calculate day of year according to date

DOY(Date, format = NULL)

Arguments

Date

a string or date vector.

format

date format when Date is a string vector