Java tutorial
//package com.java2s; public class Main { public static String date2String(int m) { return m < 10 ? String.valueOf("0" + m) : String.valueOf(m); } }