Here you can find the source of getCurrentDate(boolean WithDelimeter)
public static String getCurrentDate(boolean WithDelimeter)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getCurrentDate(boolean WithDelimeter) { if (WithDelimeter) return new SimpleDateFormat("yyyy/MM/dd").format(new Date()); return new SimpleDateFormat("yyyyMMdd").format(new Date()); }//from ww w . j a v a 2 s . com }