Here you can find the source of getCurrentlyDate()
public static String getCurrentlyDate()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getCurrentlyDate() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); return dateFormat.format(new Date()); }/* w w w . ja v a 2 s.c o m*/ }