[✅ Solution] Getting the current year

I feel like this should be very simple but I’ve tried every current_date token I could get my hands on, along with hardcoded values but I keep getting the below error. Any guidance would be greatly appreciated.

Tapes documentation shows this:

Im trying:

But I keep getting this error:

console.log(date_fns.format(date_fns.parseISO(current_datetime_formatted), 'y'));
console.log(date_fns.format(new Date(), 'y'));
console.log(date_fns.format(date_fns.parseISO(current_date_utc), 'y'));

In a calculation field:

2 Likes

Thank you. That did it of course! :raised_hands:

2 Likes