Here you can find the source of toStringUS(Date date)
public static String toStringUS(Date date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String DATE_FORMAT_MM_dd_yyyy = "MM/dd/yyyy"; public static String toStringUS(Date date) { return toString(date, DATE_FORMAT_MM_dd_yyyy); }//from w w w. j av a2 s . c o m public static String toString(Date date, String format) { SimpleDateFormat outputFormat = new SimpleDateFormat(format); return outputFormat.format(date); } }