Day_Number
Brian Element
Forums
I needed to figure out the number of days from the beginning of the year in a vitual field. One way to do this is using the @age function, but it can be a pain if your dates happen on different years, so I created a custom function that will calculate the number of days since the beginning of the year. To use it #day_num(date) and it returns a numeric value with the number of days.