Expand my Community achievements bar.

Need to extract the current year only from a form calc date variable

Avatar

Level 1

Hi,

I need to extract the year only from a date variable.How can I use the num2date(date()) to do this?

eg. num2date(date(), "YYYY MM DD") retunrs me the whole date, but I need only the current year.

Thanks in advance.

Abel.

1 Reply

Avatar

Level 10

Hi,

use $ = Num2Date(date(), "YYYY")

and the display pattern date{YYYY}