Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getCurrentDate() { SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd"); return sDateFormat.format(new java.util.Date()); } }