Here you can find the source of getDayFormat(Date date)
public static String getDayFormat(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static SimpleDateFormat dayFormater = new SimpleDateFormat("yyyy-MM-dd"); public static String getDayFormat(Date date) { return dayFormater.format(date); }/*from w w w .j av a 2 s.c o m*/ }