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 Children
  • 0
    Certified Lead Developer
    in reply to nirupamaanuragt

    Can you check if under Settings->General you have locale set as English(United Kingdom). Looks like the Internationalisations settings are at play here causing this behaviour. I have it as United States and it returns output as 'Sep' 

    If for reasons, you cannot update the Locale to US then you can try and handle the September month like below. Give it a try!

    if(
      month(ri!date) = 9,
      substitute(
        text(ri!date, "dd-mm-yyyy"),
        "-09-",
        "-Sep-"
      ),
      text(ri!date, "dd-mmm-yyyy")
    )