September is Abbreviated to Sept even though Left() function is used

if(
rule!APN_isBlank(singlePV: ri!date),
"",
/*left(text(ri!date, "mmm",3), ri!format))*/
left(text(ri!date,"mmm",3), ri!format)
)

Following is the error 

Expression evaluation error at function 'text' [line 7]: Signature length (2) does not match parameter length (3)

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to nirupamaanuragt

    Got you! This issue is because of user locale.

    User Level: Change user profile locale from en_GB (UK) to en_US (US) => affects only that user
    Admin Level: Go to Admin Console -> Internationalization -> Change Primary Locale to en_US => applies to all users in the environment.

    This locale problem is only for September month recommend you to make changes to code instead of environment level.
    Below working example for all months
     

    a!localVariables(
      local!date:"09/11/2025",
      local!formattedDate: text(local!date, "dd-MMM-yyyy"),
      if(
        isnull(local!date),
        null,
        substitute(
          local!formattedDate,
          "Sept",
          "Sep"
        )
      )
    )

Children