RIGHT() - Last 2 digits of Created time (year)

Is it possible to get the last 2 digits of the creation date (year) e.g. 20 for 2020 19 for 2019.

This is to use in a unique reference field (first 2 letters of name + “-” + last two letters of creation year + “-” + Auto ref number)

I currently have:
UPPER( LEFT(Created By,2)) & “-” & ( YEAR(CREATED_TIME()) & “-” & {Project Ref}
Which gives me:
E.g. AA-2020-101

Where do I insert the RIGHT(XX,2)?

I’ve tried the following but with a returned #error!:
UPPER( LEFT(Created By,2)) & “-” & RIGHT( ( YEAR(CREATED_TIME()),2) & “-” & {Project Ref}

Try using this to get the last 2 digits of the year:
MOD(YEAR(CREATED_TIME()), 100)

1 Like

Perfect! thanks so much @Rey_Crisostomo

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.