Day_Number

1 post / 0 new
Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57
Day_Number

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.