02-04-2020 09:56 AM
I have strings that are storing a two digit number (i.e. 00, 01, 02, etc) but I need to add another leading zero (i.e. 000, 001, 002). I don’t want to simply concatenate a 0 on the front in case I have values that end up being three digits.
Solved! Go to Solution.
02-04-2020 02:11 PM
Thank you @tstack! That worked!
02-10-2020 04:10 PM
(“0” + $value).slice(-3)
.slice(-3) will take the last 3 characters in the string