How can I remove the first leading zero using powershell?
I have the following numbers and need them to have the first zero removed.
00010 >> 0010
05812>>5812
Any suggestions?
How can I remove the first leading zero using powershell?
I have the following numbers and need them to have the first zero removed.
00010 >> 0010
05812>>5812
Any suggestions?
$oldnum = "05812"
$newnum = $oldnum.Substring(1,($oldnum.length - 1))
$newnum
$oldnum = "05812"
$newnum = $oldnum.Substring(1,($oldnum.length - 1))
$newnum