Back to project page Netball.
The source code is released under:
GNU General Public License
If you think the Android project Netball listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.prisch.util; //from w w w. java2 s. c o m import android.text.format.DateFormat; import java.util.Date; public class DateUtils { private static final String DATE_FORMAT = "yyyy-MM-dd hh:mm"; public static String formatDate(Date date) { CharSequence formattedDate = DateFormat.format(DATE_FORMAT, date); return formattedDate.toString(); } }