Display just last two digits of Year

0
Hello,  I am trying to display the last two digits of a the given year, driven off of the clock. I am not sure which trim function would be appropriate for this, it will eventually be converted to a string, so it can become a part of a part number.  Thank you!
asked
1 answers
1

Hi Alexander,

There are a lot ways to do so. You can use :
formatDateTime([%CurrentDateTime%], 'yy')

substring(formatDateTime([%CurrentDateTime%], 'yyyy'), 2)

 

Or check some forum posts related:
https://forum.mendix.com/link/questions/90619

Regards, Serhiy.

answered