List of utility methods to do Year to String
String | YearToString(int year) Year To String if (year <= 0) { year *= -1; year++; return String.format("%dBC", year); return Integer.toString(year); |
String | yearToString(int year) year To String String result = Integer.toString(year); if (result.length() < 4) result = "0000".substring(0, 4 - result.length()) + result; return result; |