Here you can find the source of getCurrentDateDBFormat()
public static String getCurrentDateDBFormat()
//package com.java2s; import java.util.*; import java.text.*; public class Main { public static SimpleDateFormat dateFormatDB = new SimpleDateFormat("yyyyMMdd"); public static String getCurrentDateDBFormat() { Date current = new Date(System.currentTimeMillis()); return dateFormatDB.format(current); }// w ww . java2s . c o m }