Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getToday() { SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd"); return df.format(Calendar.getInstance().getTime()); } }