instead of just knowing that last day of the year you can calculate it with big-o-stupid code:
endofyear and isodate are both defined as date types
endofyear and isodate are both defined as date types
Code:
endofyear = (((((%date() - %days(%subdt(%date():*d))+%days(1))) - %months(%subdt(%date():*m))+%months(1) ) +%years(1))-%days(1) );