Java Time Now getCurentTimeDirsPath()

Here you can find the source of getCurentTimeDirsPath()

Description

Creating file structure for next format /yyyy/MM/dd/

License

Apache License

Declaration

public static String getCurentTimeDirsPath() 

Method Source Code

//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());
    }
}

Related

  1. currtimeToString8()
  2. get_cur_datetime()
  3. getCurDateBefore(long time)
  4. getCurDateTime()
  5. getCurDateTIme()
  6. getCurrDateTime()
  7. getCurrSysTime()
  8. getCurrTime()
  9. getCurrTime()