Search code snippets, questions, articles...

Convert to two digits

int_name.toString().padLeft(2, '0');
string_name.padLeft(2, '0');

Search Index Data (The code snippet can also be found with below search text)

Convert to two digits
two digits
double digits
padLeft
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet