I know I can use android.text.format.DateFormat.getDateFormat() to format my dates, and android.text.format.DateFormat.getTimeFormat to format my times
android.text.format.DateFormat.getDateFormat()
android.text.format.DateFormat.getTimeFormat
Do you need the String representation only? If yes, please have a look at DateUtils.formatDateTime(Context context, long millis, int flags):
public static String formatDateTime (Context context, long millis, int flags)
in: android.text.format.DateUtils