You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was previously able to use the following to generate a series of two-digit month values. This worked by taking a number between 1 and 12, and essentially ‘zeropadding’ numbers between 1 and 9 using the slice filter:
However, the slice filter no longer works for this use case, with no transformed number output. I tried converting i to a string by using append: '', but that didn’t work. In the end, I created a separate zero pad filter, but this seems unnecessary. I think the change is a result of moving to strictly typed code, but can’t be sure.
The text was updated successfully, but these errors were encountered:
I was previously able to use the following to generate a series of two-digit month values. This worked by taking a number between 1 and 12, and essentially ‘zeropadding’ numbers between 1 and 9 using the
slice
filter:However, the
slice
filter no longer works for this use case, with no transformed number output. I tried convertingi
to a string by usingappend: ''
, but that didn’t work. In the end, I created a separate zero pad filter, but this seems unnecessary. I think the change is a result of moving to strictly typed code, but can’t be sure.The text was updated successfully, but these errors were encountered: