Kannan AU

Kannan AU

  • 1.9k
  • 54
  • 4.7k

How to remove 2 Zeros in the beginning of a string

Apr 11 2020 5:48 PM
This is my code -
var creditAccount = response.Accounts.Where(x => x.Value.Identifier.ProductCode == "MMM").Select(x=>x.Value.Identifier).ToList();
// For Example :- creditAccount - 0000002134665300468820,0000001528830814061271
foreach (var item in creditAccount)
{
permanentIdList.Add(item.PermanentIdentifier);
}
Here i Need to remove two zeros in the creditAccount before pushing into the list. Please help me How do I remove that.
I am expecting - For Example :- creditAccount - 00002134665300468820, 00001528830814061271

Brought to you by:

Answers (3)