Here you can find the source of getYyyyMMddWithoutDate()
public static String getYyyyMMddWithoutDate()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private final static SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyyMMdd"); public static String getYyyyMMddWithoutDate() { return yyyyMMdd.format(new Date()); }/* w w w .j a v a2 s. com*/ }