Here you can find the source of getCurentTimeDirsPath()
public static String getCurentTimeDirsPath()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final SimpleDateFormat DATA_DIR_FORMAT = new SimpleDateFormat("/yyyy/MM/dd/"); /**/*from w ww . jav a2s . c o m*/ * Creating file structure * for next format /yyyy/MM/dd/ * @return */ public static String getCurentTimeDirsPath() { return DATA_DIR_FORMAT.format(new Date()); } }