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