function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Complete noviceComplete novice 

Populating a date field with the last day of the current year

I have a process and flow that creates a new record.  I want to populate a date field with the end of the current year, how do I do this?

Being even more ambitious, is it possible to say if current date is later than 31st November, then populate date with 31st December next year, otherwise say 31st December this year?

Many thanks