First three letters of a month from a date variable

By carl ruhle on 15 Jan
I've seen actions based on switch (12 options) statement to get the first three letters from a date variable.

I use a one-liner.

The DATE-VARIABLE is an input date type and it returns the first three letters of a month (these are in portuguese).

Substr("JanFevMarAbrMaiJunJulAgoSetOutNovDez",(Month(DATE-VARIABLE)*3)-3,3)

Hope it is usefull to somebody.


Carl,

This is ment for ideas that OutSystem should build into their platform, not for tips to other OutSystem users :).
Text format would be able to take a date and to this ...