Here you can find the source of formatMdDdYySlashed(Date date)
Parameter | Description |
---|---|
date | a parameter |
public static String formatMdDdYySlashed(Date date)
//package com.java2s; //License from project: LGPL import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/* www.j a va2s . c om*/ * Formats a date object to "MM/dd/yy". * * @param date * @return * @author shinobu * @since RELEASE4-12 */ public static String formatMdDdYySlashed(Date date) { if (date == null) { return ""; } return formatSlashedMmDdYy().format(date); } /** DateFormat for "MM/dd/yy". */ public static DateFormat formatSlashedMmDdYy() { return new SimpleDateFormat("MM/dd/yy"); } }