Here you can find the source of dateToStringTemporalCoverage(Date date)
public static String dateToStringTemporalCoverage(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String dateToStringTemporalCoverage(Date date) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try {// ww w .j av a 2 s .com return sdf.format(date); } catch (NullPointerException ex) { return ""; } } }