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.
Brian Element
Offline
Last seen: 5 hours 5 min ago
Joined: 07/11/2012 - 19:57