marlow1208
Technical User
I am using the following formula and get a "Bad Number Format String" error:
If month(currentdate) = 1
then ToText((year(currentdate)- 1),"yyyy")
else ToText(year(currentdate),"yyyy")
If I remove the formatting argument on the second line of code as the following, it works:
If month(currentdate) = 1
then ToText(year(currentdate)- 1)
else ToText(year(currentdate),"yyyy")
I need the formatting argument included. Can anyone tell me what I am doing wrong?
If month(currentdate) = 1
then ToText((year(currentdate)- 1),"yyyy")
else ToText(year(currentdate),"yyyy")
If I remove the formatting argument on the second line of code as the following, it works:
If month(currentdate) = 1
then ToText(year(currentdate)- 1)
else ToText(year(currentdate),"yyyy")
I need the formatting argument included. Can anyone tell me what I am doing wrong?