Android Path Create getFolderPathNameYearAndMonthSubDirectoryDay()

Here you can find the source of getFolderPathNameYearAndMonthSubDirectoryDay()

Description

get Folder Path Name Year And Month Sub Directory Day

Declaration

public static String getFolderPathNameYearAndMonthSubDirectoryDay() 

Method Source Code

//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
}

Related

  1. getDownloadPath()
  2. getFilePath(String path)
  3. getPath(String fullFileName)
  4. getProjectAbsolutePath()
  5. getUniqueFilePath(String filePath)
  6. getNameDelLastPath(String fileName)
  7. getPath(String path, String parent)
  8. getRealPath(String name)
  9. getFullPath(String inBaseUrl, String inUrl)