Try TO_NUMBER(TO_CHAR({today},’YYYY’))
# general
n
Try TO_NUMBER(TO_CHAR({today},’YYYY’))
l
I tried this already and it shows an unexpected error.
d
Although there's one too many `Y`s in that answer, it should still work. Make sure you're using
Formula (Numeric)
and not
Formula (Date)
n
Fixed.
👍 1
d
Interestingly, still worked. It returned "20200"
"worked"
l
Now I figured it out why it showed an error. I was using Formula (Text) and was hoping that it will remove the comma due to TO_NUMBER. Here's the final formula (no comma): Formula (Text): TO_CHAR(TO_NUMBER(TO_CHAR({today},'YYYY')))
Thanks everyone!