Here you can find the source of getFolderPathNameYearAndMonthSubDirectoryDay()
public static String getFolderPathNameYearAndMonthSubDirectoryDay()
//package com.java2s; import java.util.Calendar; public class Main { public static String getFolderPathNameYearAndMonthSubDirectoryDay() { String path = ""; Calendar cal = Calendar.getInstance(); path += String.valueOf(cal.get(Calendar.YEAR)) + "_"; path += String.valueOf(cal.get(Calendar.MONTH) + 1); path += System.getProperties().getProperty("file.separator"); path += String.valueOf(cal.get(Calendar.DATE)); return path; }//from w w w.j ava 2 s. c o m }