Substring method suppressing zeros
Folks,
Problem with substring...
I've a String d1 = '2005-03-01' and I need to extract 050301.
However when I use
String d2 = d1.substring(3,4) + d1.substring(6,7) + d1.substring(9,10) it gives me 531 and not 050301.
WHY?
How can I overcome this problem?
Thanks for your help in advance.

