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