I\'m trying to sort a map in java by date key using TreeMap. Here\'s my code
public static void sort() { BufferedReader br; String line; String[] da
See http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html.
Use y for year, M for month in year, and d for day in month. Specifically, lowercase m is minute in hour, while uppercase M is month in year.