Here you can find the source of getCurrentDataTimePrettyFilesystem()
public static String getCurrentDataTimePrettyFilesystem()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static String getCurrentDataTimePrettyFilesystem() { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss"); Calendar calendar = new GregorianCalendar(); return simpleDateFormat.format(calendar.getTime()); }/*from w ww . j a va 2 s . c om*/ }