Here you can find the source of getToday()
public static String getToday()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getToday() { return new SimpleDateFormat("yyyy-MM-dd").format(new Date()); }// w w w . jav a 2s . c om }