Format a number 0..9 to display with 2 digits August 30, 2018 String.format("%02d", myNumber) References https://stackoverflow.com/questions/12421444/how-to-format-a-number-0-9-to-display-with-2-digits-its-not-a-date Related